Received: by 2002:a25:d7c1:0:0:0:0:0 with SMTP id o184csp1287515ybg; Fri, 18 Oct 2019 15:15:47 -0700 (PDT) X-Google-Smtp-Source: APXvYqyRlsfMYU/Pqk1/3MAY2Bc+BDW6TAexw9NJn4DfbAwE/zoXDzmJOrmFG0li61MuODlpliOU X-Received: by 2002:a17:906:1342:: with SMTP id x2mr10924083ejb.304.1571436947678; Fri, 18 Oct 2019 15:15:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1571436947; cv=none; d=google.com; s=arc-20160816; b=qCcp6ShRqyL7WGjUsaFDik8vY2XUc4VD44o/ryt/HDQoKzR2LX2bxR0ax6Vk2TwXRR 5CfGl1gVCzuq/k3G216zhjyjZha6iwnYeDuuVHnvTZ/pTmNZO+27Dua0VRIWQyBrca3l VAoXefeRJiZkK3JUnLtkOQFwvpsv8SpST2PIzgpQkb3uZPoPjEeAJpQ+QJnIUAM6ynIV 0QpGOFdc7SfBwp7yzsvaCeN6bQVBwL3kVlz2x+Oew1ApG2iS+FqD6WbSkVgtS5dTGHdi J7F7en/iSnAtCKLcN7UIqFszZBm9Z569gIBSgD33WwFQB8fvn0wSUPN06lqv48nvSe2M luuw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version; bh=VfE4pHkEB0q49RVPM0ZsYNB/wm/zHNekWOHlQdV2NzA=; b=ue9fu7RwgYxIDJz/6AN0HVoj30Sj+p7QsojKCUD5MU1AYKMUK0LxtuE8uaAwdPpdtT 6A4/z6d3e9Do+1xM3h0wdT5vgG7Dh4O2l7WFJ0FTtfjxNv4bI/hoiO6Y9iO9EKUTvisq iR223/DdltjaUfw8mofhGyRiqKlcQMKj3pqmzpUD/CO5BazxMzeIQaZSbVP5BUmA3gfU nQTjbyZ49CeIlSEks0ctBAp+r+XnM7wabDQwlTAL55U2mET5wd2l3vu0zQMJSZP+3eqU ELPQgb1wLtSStZ77kXxbRfVXlV7pGJvtmdJDhFFXWeTGHUxV5b2MhJ39jSwpWvu9lx7E fXEg== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id j10si156754ejv.339.2019.10.18.15.15.24; Fri, 18 Oct 2019 15:15:47 -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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2441486AbfJQTL4 (ORCPT + 99 others); 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-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-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@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 >