From patchwork Thu Oct 17 12:27:35 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Amit Kucheria X-Patchwork-Id: 176582 Delivered-To: patch@linaro.org Received: by 2002:a92:7e96:0:0:0:0:0 with SMTP id q22csp849566ill; Thu, 17 Oct 2019 05:27:59 -0700 (PDT) X-Google-Smtp-Source: APXvYqypb9crNodD45xC/K/7c+m4Lo2RNHO4o5MFjVlBdv2KgZHp+mm2jP/+xiFpNkX6taAAuU8n X-Received: by 2002:a17:906:35cb:: with SMTP id p11mr3280103ejb.128.1571315279280; Thu, 17 Oct 2019 05:27:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1571315279; cv=none; d=google.com; s=arc-20160816; b=IUwHR5WdiRNWIfCxk0+mp+/PHyXaMU7hZkGE7eWyPkth612M9MUQ1c3OyVvW9yq1aJ R+eefMzKbwTB5j8+m/seBQvlDddNOXCWD6P7/VHLsBhPrZuvnMHItRMfKcSLKcWOjzof Ee3RovphxPiaL70vlwhDFb4M5DZVo03UzFCpOIXayrU1VgDbayH3tPYF+98gWeDAjNcF kolenf+jNRGwElnXGAW+WHkTEtWICEacAmY5hlPaQBQvGHQvlXFkPPYp52fQDmzWJuMH Bg5o06205BG3EZi8xp4sbW5xdhtHy+PWPrztSdTC6Et0XfO1NaJ/i/oLB4LBfItJK1Y3 AWIw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:references :in-reply-to:message-id:date:subject:cc:to:from:dkim-signature; bh=F14E7+MnIlpQiExL8cWFs9niwCwKQjYO3IRinn+L/UE=; b=zj8vfQVxUl/bPURDKuXZk1EIySiu2/H2tpamTchCy3AwCRnYt67vNv1kWPOlz78gM8 tLwcsx6/vD+wBGIxNoKM7gkvewUcDMAio1DaNyf1lJcagsaDsea3bx0MkQ8R1joYpgP0 nDl5f5agbsLQwxHrlOGo0SMPMSdBLU2CAl0GtbTornRlD0zIXxOIFcMMTGQD5REOsIhe Fh9BU4c3HXBG5KElswmBNhyz0J8Fh3P3LU+0Z9FrDS0LUxgGqADl8sfqz2Q1XRLkopPC Cyaolr50MCmEs9mt3MbNQ6YakY1WrjVKRauNF/3cCtiy1al/Uf3LCoEZn1TJc6BE597Y 5jiQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=SW53kbOH; 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=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id nh5si1259865ejb.154.2019.10.17.05.27.58; Thu, 17 Oct 2019 05:27:59 -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; dkim=pass header.i=@linaro.org header.s=google header.b=SW53kbOH; 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=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2502356AbfJQM15 (ORCPT + 26 others); Thu, 17 Oct 2019 08:27:57 -0400 Received: from mail-pl1-f196.google.com ([209.85.214.196]:41284 "EHLO mail-pl1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2502346AbfJQM14 (ORCPT ); Thu, 17 Oct 2019 08:27:56 -0400 Received: by mail-pl1-f196.google.com with SMTP id t10so1057988plr.8 for ; Thu, 17 Oct 2019 05:27:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :in-reply-to:references; bh=F14E7+MnIlpQiExL8cWFs9niwCwKQjYO3IRinn+L/UE=; b=SW53kbOHuCdPg1DuOx63gq8I1iayGlxonA/1rDDbCiItozWianEK9QISjChUx+Xq7Q GNYKWlPIzJcJ+AqJ0dGEwruPuFWCXQlSD5LKyvrMFAT4QUreATzVtl5KT0Tn5lfXwqOO vLizgueqTBOf3dfRa28LH03rBDpHE/MWvmeVTSivYW67EMCfmo82FA+xFzijO9BhEUEM CP51IPGhliOBPBQJI6CNSUMoG4bS6jYpo53QOvQQRtg7NsJs4xsLhkFX5fH/04mJU9tm IEOveG5+RCVMGYpnOIfyvnAmD1ktwtEW8TOdKho+eZLTGahRrwtZBjTlKUimtOEEv31t c9WQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:in-reply-to:references; bh=F14E7+MnIlpQiExL8cWFs9niwCwKQjYO3IRinn+L/UE=; b=OzMZk2ytAvRk4m7kxYm4fKejowh1LStOI9sjzrUwye4/jNosWdxKuILVe5DR1wcbt2 chFCUwUflGCFeEwdj3x4vwyKv29eoQmcOekz8gTn9/7YyTvAJ3EXsUX4xHvcf6nVBmod d/cWk4pnGuGqaguPNBr5yC4LaWEoxoqXt2DA1uy9q0eNMfcV9WLHuwGvvPt0EV4ruY3/ LpM/TgX0RudS2N/VRVaAbIh2ZFDFs0+o8I9MuE3SB6UM0XFI1bJI39S8Zq8EXpRFHV1N nlHTIvXd5fKRL2t7Q2+KoJgPHEPjrIuUOlmi7IaGiM40kK7gn42G5Efm3ImuUaYg/D+w DWjw== X-Gm-Message-State: APjAAAVmlAWt6ABPtQhpnkG7S2qXJL3HkHCI4LxrWUAdASAEAK465XY2 IXxQW0+vXkzSlhESRBUoHrfRtbUnph6+Mw== X-Received: by 2002:a17:902:9a93:: with SMTP id w19mr3590819plp.316.1571315275379; Thu, 17 Oct 2019 05:27:55 -0700 (PDT) Received: from localhost ([49.248.54.231]) by smtp.gmail.com with ESMTPSA id x72sm3907375pfc.89.2019.10.17.05.27.54 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 17 Oct 2019 05:27:54 -0700 (PDT) From: Amit Kucheria To: 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, "Rafael J. Wysocki" , Amit Kucheria , Zhang Rui Cc: linux-pm@vger.kernel.org Subject: [PATCH v3 3/6] cpufreq: Initialise the governors in core_initcall Date: Thu, 17 Oct 2019 17:57:35 +0530 Message-Id: X-Mailer: git-send-email 2.17.1 In-Reply-To: References: In-Reply-To: References: Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Initialise the cpufreq governors earlier to allow for earlier performance control during the boot process. Signed-off-by: Amit Kucheria Acked-by: Viresh Kumar --- 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(-) -- 2.17.1 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