From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.1 required=3.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,INCLUDES_PATCH,MAILING_LIST_MULTI,SIGNED_OFF_BY, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 4DD80FA372A for ; Thu, 17 Oct 2019 19:12:06 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 1E398222C6 for ; Thu, 17 Oct 2019 19:12:06 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1571339526; bh=J1msCt9EwmYT+BnayX1hxz+j4qYoTzyVRUrqC5XV1rc=; h=References:In-Reply-To:From:Date:Subject:To:Cc:List-ID:From; b=LYn5a7yKUifLyrZG6Cq6+8FMow26Anb4JcQeNgLJfn+pEYRS5MYgfwRh8Hmg0r+o5 5bx4N4WJoISlrAoeYiJeAMkAA35/qw8jDtnMiyg5r4dJOEVy/IslXhM39cZRYKZNHd ktXTegF4EhG6Bj02C0BcXe7D30MLqGNu+/PLTETk= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2441481AbfJQTL4 (ORCPT ); Thu, 17 Oct 2019 15:11:56 -0400 Received: from mail-ot1-f65.google.com ([209.85.210.65]:46355 "EHLO mail-ot1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727646AbfJQTLz (ORCPT ); Thu, 17 Oct 2019 15:11:55 -0400 Received: by mail-ot1-f65.google.com with SMTP id 89so2832044oth.13; Thu, 17 Oct 2019 12:11:55 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=VfE4pHkEB0q49RVPM0ZsYNB/wm/zHNekWOHlQdV2NzA=; b=h53hc919+OW05u0DILT0VltiM+EeOYyRBSPpdh5FUWwIxdNFDb375AGuKuS7UxGq1A BQYyqowXplnd5svsCKifezkxgGtx4lTrNoAoaCqL1QFrqoYJedpI4HDpioih7cyhfpYc hkVtOeUzdgoN6W1z0v9gtR+9WUbEon6ZW0uZeCpBA2Sz/ieKd//cy2/DwpukRnP8hO1y QbrCLhb/hU2aU3iqy0WwQZknu+xxxnbtnkLqgHRn+/anIaFCtylm6lMQzDX1ZRpxn5Sy bgJX05pDcJ5o4+RJnkmbaWDEZmLzPeSq1cb3JnLnMv8ybM6kALlxXbfCqUXyKbpQD6c9 lXNw== X-Gm-Message-State: APjAAAVCPYevpQ5AAVCyn5PdzYm/cxqGGhj3beLIoYa6VNaH9WQe+7J6 NQwYZe16wA0CewUDwNiCLxDW62rIsIMhpUyS4xw= X-Google-Smtp-Source: APXvYqydr6smfx+tDiMQxWxqDxB06hSqqxbKElnCI8osB6kbMr16aaHPV2O8ujoYLv0xdf3M9Rs3nqRDSIyG+R+mEy8= X-Received: by 2002:a9d:5a0f:: with SMTP id v15mr4515073oth.266.1571339514744; Thu, 17 Oct 2019 12:11:54 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: "Rafael J. Wysocki" Date: Thu, 17 Oct 2019 21:11:42 +0200 Message-ID: Subject: Re: [PATCH v3 3/6] cpufreq: Initialise the governors in core_initcall To: Amit Kucheria Cc: Linux Kernel Mailing List , linux-arm-msm , Daniel Lezcano , Viresh Kumar , Sudeep Holla , Bjorn Andersson , Eduardo Valentin , agross@kernel.org, Taniya Das , Stephen Boyd , Lina Iyer , "Rafael J. Wysocki" , Amit Kucheria , Zhang Rui , Linux PM Content-Type: text/plain; charset="UTF-8" Sender: linux-arm-msm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org On Thu, Oct 17, 2019 at 2:28 PM Amit Kucheria wrote: > > Initialise the cpufreq governors earlier to allow for earlier > performance control during the boot process. > > Signed-off-by: Amit Kucheria > Acked-by: Viresh Kumar You also want to do that for the schedutil governor I think. > --- > drivers/cpufreq/cpufreq_conservative.c | 2 +- > drivers/cpufreq/cpufreq_ondemand.c | 2 +- > drivers/cpufreq/cpufreq_performance.c | 2 +- > drivers/cpufreq/cpufreq_powersave.c | 2 +- > drivers/cpufreq/cpufreq_userspace.c | 2 +- > 5 files changed, 5 insertions(+), 5 deletions(-) > > diff --git a/drivers/cpufreq/cpufreq_conservative.c b/drivers/cpufreq/cpufreq_conservative.c > index b66e81c06a57..737ff3b9c2c0 100644 > --- a/drivers/cpufreq/cpufreq_conservative.c > +++ b/drivers/cpufreq/cpufreq_conservative.c > @@ -346,7 +346,7 @@ struct cpufreq_governor *cpufreq_default_governor(void) > return CPU_FREQ_GOV_CONSERVATIVE; > } > > -fs_initcall(cpufreq_gov_dbs_init); > +core_initcall(cpufreq_gov_dbs_init); > #else > module_init(cpufreq_gov_dbs_init); > #endif > diff --git a/drivers/cpufreq/cpufreq_ondemand.c b/drivers/cpufreq/cpufreq_ondemand.c > index dced033875bf..82a4d37ddecb 100644 > --- a/drivers/cpufreq/cpufreq_ondemand.c > +++ b/drivers/cpufreq/cpufreq_ondemand.c > @@ -483,7 +483,7 @@ struct cpufreq_governor *cpufreq_default_governor(void) > return CPU_FREQ_GOV_ONDEMAND; > } > > -fs_initcall(cpufreq_gov_dbs_init); > +core_initcall(cpufreq_gov_dbs_init); > #else > module_init(cpufreq_gov_dbs_init); > #endif > diff --git a/drivers/cpufreq/cpufreq_performance.c b/drivers/cpufreq/cpufreq_performance.c > index aaa04dfcacd9..def9afe0f5b8 100644 > --- a/drivers/cpufreq/cpufreq_performance.c > +++ b/drivers/cpufreq/cpufreq_performance.c > @@ -50,5 +50,5 @@ MODULE_AUTHOR("Dominik Brodowski "); > MODULE_DESCRIPTION("CPUfreq policy governor 'performance'"); > MODULE_LICENSE("GPL"); > > -fs_initcall(cpufreq_gov_performance_init); > +core_initcall(cpufreq_gov_performance_init); > module_exit(cpufreq_gov_performance_exit); > diff --git a/drivers/cpufreq/cpufreq_powersave.c b/drivers/cpufreq/cpufreq_powersave.c > index c143dc237d87..1ae66019eb83 100644 > --- a/drivers/cpufreq/cpufreq_powersave.c > +++ b/drivers/cpufreq/cpufreq_powersave.c > @@ -43,7 +43,7 @@ struct cpufreq_governor *cpufreq_default_governor(void) > return &cpufreq_gov_powersave; > } > > -fs_initcall(cpufreq_gov_powersave_init); > +core_initcall(cpufreq_gov_powersave_init); > #else > module_init(cpufreq_gov_powersave_init); > #endif > diff --git a/drivers/cpufreq/cpufreq_userspace.c b/drivers/cpufreq/cpufreq_userspace.c > index cbd81c58cb8f..b43e7cd502c5 100644 > --- a/drivers/cpufreq/cpufreq_userspace.c > +++ b/drivers/cpufreq/cpufreq_userspace.c > @@ -147,7 +147,7 @@ struct cpufreq_governor *cpufreq_default_governor(void) > return &cpufreq_gov_userspace; > } > > -fs_initcall(cpufreq_gov_userspace_init); > +core_initcall(cpufreq_gov_userspace_init); > #else > module_init(cpufreq_gov_userspace_init); > #endif > -- > 2.17.1 >