From patchwork Fri Oct 18 08:52:00 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Amit Kucheria X-Patchwork-Id: 176781 Delivered-To: patch@linaro.org Received: by 2002:ac9:3c86:0:0:0:0:0 with SMTP id w6csp557674ocf; Fri, 18 Oct 2019 01:52:25 -0700 (PDT) X-Google-Smtp-Source: APXvYqy9FeEWsq8rZ/dqCe1GbAiwUoztYPASY2wmU6yQ/fi1SFkejxjhE3ghXzLm/xbsdRTsCqVF X-Received: by 2002:a17:906:6a8e:: with SMTP id p14mr7541492ejr.137.1571388745812; Fri, 18 Oct 2019 01:52:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1571388745; cv=none; d=google.com; s=arc-20160816; b=n7LJucTEsY/8pjRCyIn/jPH1E+/zPGeTYiAzi3570mUmqzL1hGbObkbzzKHblqqUdb mBpsDTNvg1YucDJLvmmjRGTcn33broPQiVRqq8b4BX7jcznuBjhcWmsgZ5rxxgJeCyxs N4drhG8H2+Z+F4K679J4D0FKH4auO5EC3p4WzfqooS0ZkQfNBQIdkgaY8J0NEDhLuQlR K+xAVWKLdP9tVKRMQezC2FtvVuUHDa5m1h0/1EyBNf+ki+sO0Fbo1Y1Yh+Vhq0ZzrNy7 vbBHpAYYlREJVFYadlH45/4RcFtV3BhMXFidTAw7/CfAtvVRS8R4ynNbVuFc5CMFzAku 1Izw== 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=pOGwcMchIXdaRlZBtyBhTrAkf1RWijM6eAT3n0JAvC8=; b=rnnNNLB4tn2Dm0BhEy3hp+k58zZTBA5QY2oxFp3eTtbn+3sTpABbJL9Y58wJV1Sd9K 6pGUIkwBbZbLlKP22wn6hPycWhGpBHDYfTLBpPcWQZw8X4ty0LdTKnK1fuxAQnbYyHPC IBS/qbxkmGTtCnydzuf1elUNsV6NnCf8Iq6jWeqaMfRkxWJOHiuLy14hUyLxO+UZTKmN 6ysMqJUVm6usSZIUiLa1pMcUBj5427hnUaunr5/g1cpnOERv08/pOp33CiNLcvsFqmUs pUKqMSj9zL3PN8a9IMPxmVdVybwZl/iOTy2KdGyQ4SehCrZ4v/55hyjU82df/u3O3Dn6 P+3Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="W0/ZDYAS"; spf=pass (google.com: best guess record for domain of linux-pm-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-pm-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 f19si3492166edb.385.2019.10.18.01.52.25; Fri, 18 Oct 2019 01:52:25 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-pm-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="W0/ZDYAS"; spf=pass (google.com: best guess record for domain of linux-pm-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-pm-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 S2632966AbfJRIwZ (ORCPT + 10 others); Fri, 18 Oct 2019 04:52:25 -0400 Received: from mail-pg1-f195.google.com ([209.85.215.195]:40821 "EHLO mail-pg1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2632963AbfJRIwY (ORCPT ); Fri, 18 Oct 2019 04:52:24 -0400 Received: by mail-pg1-f195.google.com with SMTP id e13so2986433pga.7 for ; Fri, 18 Oct 2019 01:52:24 -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=pOGwcMchIXdaRlZBtyBhTrAkf1RWijM6eAT3n0JAvC8=; b=W0/ZDYASOJLvNqpxJwakFyLljNCg9m3gU0qus8PbZv80d4MBYV61s6YgkTZ2o092HT l6Hox1rxqw02mP0hkE4dmTIBOWuWzQnun3CAx8iQoBX+ieOgLqXuGkwjkkOBDHTp5Ej+ bSnCeOZpuByrGXv865yvZBGp5e3L4VUeAZx+58RmXzR2DvP9GDKFU1ygQ9w2uMVTfPcz smHMCtUiUzR34xEfz0yeFzUvh94kWKg6jMr4+OVdRPZ10fXTx3dQH2GQTaOGk6Ngx4Uk IMX2iqAmFPlLvk2rQBvqd8zGqL8L0dUK+Ga6BJIMHRfiL0VXN79mrWTRE45HPF/mmQAF dwcw== 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=pOGwcMchIXdaRlZBtyBhTrAkf1RWijM6eAT3n0JAvC8=; b=sXwd6Uz9z9alJi7+BKnqV7smGboXUuiWlfpcL5xS60SSA8oYMBKJNVUFHUpmaBvJk0 CLaMxAJf2FfUxVPRUE7u84JM4oedEwjr7nEmx2XpKEdItmIqySvGSF/vm4aUpvN8S/8N td2VHPUt9rr+ANlI+EEW0hcJGb9CNCV5qN2yQE3VrY68pZfR4KhTPv8oHn6lUGgZVOUr tlPgglzdPd/YfKRzXwdOuGh8hblk/vPfiAYWcz5DSempxKF8hXYjosHjIu4CpKuWL4St /l0ZuN2qQD5S/28gXmBCkcLLcq4i1QCI3v+N6irFUmY/+YDTbrsK60c16cbzQgfKRFOS AzLg== X-Gm-Message-State: APjAAAVeEj5KE9A9aFhtY7NJjBfHSZexCgNwVNGIMhPzAANT89Xg19+2 xTM35n3DeIBySBfMa3lCsXblPUDJeT5Eyw== X-Received: by 2002:a17:90a:bd8e:: with SMTP id z14mr9466041pjr.40.1571388743507; Fri, 18 Oct 2019 01:52:23 -0700 (PDT) Received: from localhost ([49.248.178.134]) by smtp.gmail.com with ESMTPSA id c34sm5688183pgb.35.2019.10.18.01.52.22 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 18 Oct 2019 01:52:23 -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 , Ben Segall , Dietmar Eggemann , Ingo Molnar , Juri Lelli , Mel Gorman , Peter Zijlstra , Steven Rostedt , Vincent Guittot , Zhang Rui Cc: linux-pm@vger.kernel.org Subject: [PATCH v4 3/6] cpufreq: Initialise the governors in core_initcall Date: Fri, 18 Oct 2019 14:22:00 +0530 Message-Id: X-Mailer: git-send-email 2.17.1 In-Reply-To: References: In-Reply-To: References: Sender: linux-pm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pm@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 +- kernel/sched/cpufreq_schedutil.c | 2 +- 6 files changed, 6 insertions(+), 6 deletions(-) -- 2.17.1 Reviewed-by: Rafael J. Wysocki 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;