Received: by 2002:a25:d7c1:0:0:0:0:0 with SMTP id o184csp1728534ybg; Sat, 19 Oct 2019 01:13:11 -0700 (PDT) X-Google-Smtp-Source: APXvYqzv0EU1/ZgAWo8hMtP4qcagP3ofIZ5PkiojHQnNy7gzHVYczqVKRqtaST3sfQhi3Va+FD5a X-Received: by 2002:a50:a781:: with SMTP id i1mr13966436edc.17.1571472791122; Sat, 19 Oct 2019 01:13:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1571472791; cv=none; d=google.com; s=arc-20160816; b=Cg6NpHdaZ944AEL3yus0HvOg9qsRN+AejpmPQM0QLY4GkQw1dTdVYCE2GzJ54DXalT LNgtopumyWtaoEq1HU7yub8k9pts4rizEDsW7zWID7cpFyUWI5OkKpHGM7o6NTUBEs3f /jijyD0toNcfhIabr3JpGyuj2wsYuEFuSsc9A0HE7L6cOAs4PTuS6vfPCnDqGjxsf/5w ZN4CpRfecDLRaK+stbz7CdM1tZNOq8NQbVOoia4ai68Hkcor9ZYywrS9hYsy/4o5PfuP OBzznwvXQGeIt22p9OpZvGkeM2OaUwOVldCiiW3eAe2I8Og+7K4hpqylaMcNAyZb7DyK NVEg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=SwjIIc8OPGn7bTt/9y/uAd1mopb7cDDlBF+Nb5YXFNA=; b=RPioHpG2l1pmlLMUBB6aEJp6xAREOp8bcmYEqdTzoRfRcz5g4+cbtYFaGZGxXaAOux iDQNsbOUGInojbAjC5JoeYcOave2H449T4SVPqC6UUhY5MAsIqDkQbayQ39L7BYmJoP1 5kdlEl5zrsZmQJOh6nPNigqZwB+tTwnIgBZ7ArA3LCReYhGfCnCIIQqJ+pQmy68Wnw5W TthHGcfES0bUI2O9xi4TKlmDt7fVcAGTilXpvFKv5ghdg6X2V9jNPt1b7NFF59uuKgIB 8mEESv3YFDav3bWxyfw7UpkMpkX8Yshgzh9kyjmAyV9lSd1yo1N0uQIBs58JH9y43Thu OWZQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id b22si4628141eje.299.2019.10.19.01.12.48; Sat, 19 Oct 2019 01:13:11 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2407977AbfJRKWM (ORCPT + 99 others); Fri, 18 Oct 2019 06:22:12 -0400 Received: from cloudserver094114.home.pl ([79.96.170.134]:61869 "EHLO cloudserver094114.home.pl" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728989AbfJRKWM (ORCPT ); Fri, 18 Oct 2019 06:22:12 -0400 Received: from 79.184.255.51.ipv4.supernova.orange.pl (79.184.255.51) (HELO kreacher.localnet) by serwer1319399.home.pl (79.96.170.134) with SMTP (IdeaSmtpServer 0.83.292) id 6ce2739a0f04cd0d; Fri, 18 Oct 2019 12:22:10 +0200 From: "Rafael J. Wysocki" To: Amit Kucheria Cc: linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org, daniel.lezcano@linaro.org, viresh.kumar@linaro.org, sudeep.holla@arm.com, bjorn.andersson@linaro.org, edubezval@gmail.com, agross@kernel.org, tdas@codeaurora.org, swboyd@chromium.org, ilina@codeaurora.org, Amit Kucheria , Ben Segall , Dietmar Eggemann , Ingo Molnar , Juri Lelli , Mel Gorman , Peter Zijlstra , Steven Rostedt , Vincent Guittot , Zhang Rui , linux-pm@vger.kernel.org Subject: Re: [PATCH v4 3/6] cpufreq: Initialise the governors in core_initcall Date: Fri, 18 Oct 2019 12:22:09 +0200 Message-ID: <1627245.O3FKD7HvXP@kreacher> In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Friday, October 18, 2019 10:52:00 AM CEST 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 No more issues found, so Reviewed-by: Rafael J. Wysocki > --- > 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 +- > kernel/sched/cpufreq_schedutil.c | 2 +- > 6 files changed, 6 insertions(+), 6 deletions(-) > > diff --git a/drivers/cpufreq/cpufreq_conservative.c b/drivers/cpufreq/cpufreq_conservative.c > index b66e81c06a575..737ff3b9c2c09 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 dced033875bf8..82a4d37ddecb3 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 aaa04dfcacd9d..def9afe0f5b86 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 c143dc237d878..1ae66019eb835 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 cbd81c58cb8f0..b43e7cd502c58 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 > diff --git a/kernel/sched/cpufreq_schedutil.c b/kernel/sched/cpufreq_schedutil.c > index 86800b4d5453f..322ca8860f548 100644 > --- a/kernel/sched/cpufreq_schedutil.c > +++ b/kernel/sched/cpufreq_schedutil.c > @@ -915,7 +915,7 @@ static int __init sugov_register(void) > { > return cpufreq_register_governor(&schedutil_gov); > } > -fs_initcall(sugov_register); > +core_initcall(sugov_register); > > #ifdef CONFIG_ENERGY_MODEL > extern bool sched_energy_update; >