Received: by 2002:a25:c593:0:0:0:0:0 with SMTP id v141csp1467600ybe; Wed, 11 Sep 2019 15:38:42 -0700 (PDT) X-Google-Smtp-Source: APXvYqzrSg0lpMiWKiWsEjlbXhaZbrsiTKy9LizMpNAyscZWR2+C8UJxGqvybL5xHz7CJ5U2yO45 X-Received: by 2002:a05:6402:b29:: with SMTP id bo9mr38834291edb.10.1568241522182; Wed, 11 Sep 2019 15:38:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1568241522; cv=none; d=google.com; s=arc-20160816; b=dqd4GOHT0J5zs/zTy5wsukLm+UZQYONkRI2dj950Yq8QlHF9onnO1ZIoMTmJ0CUN1f KAo8jDvtq4xqJE6+YJebVCCuXoX9RT8xAHws2obXKH9kZhflliwpA4pQRe4gu0vSuXlL ePM6Rm+C6r2nMYactL20iFMdl9Tuxdpp0QUhO0IQNyJZMjuDkR0q8C6t9ehGqFY8LxAN 4O62J+H00RZRMh7sbgDIxxShO7hsdfwtMnYPCOGwTBOQhBW6QtofmzI3OAJ953UlUtw6 UrYxNFullRNFh9/txC3oC1x/XBuFfToZsmnhNf9Ts2neqVLig9+/R1M3yR82Gn5eEyNy L/3A== 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=OSYcY8IBbPXHFII/5CsrnXT8+IaVG+jk8Oh4t4Zn6xA=; b=ZLN1XirwtAGsQ87ITOpCi3zaXAjKKLQX9jqrnTuBuhERH+boV5xqm81XTLbKYviWPm moxJziLhTd52xsMq41kd5/6y1GlKdSES9XdhivK5UP4uRGO7PwfZhX+rh0Ya1cozvaCP 4vzgGF8xewEOsYeEAz+qpV4lDpgzF1y7sMgS2YfjhLANaunaybQtWnGCjjaK0uux5dD4 wwOKQrf8pdfs1h1zDslqngdtb7/hNBAb37m13pC4Y0CKMh+QnU9qicF6UyyDTU7aoKJK 5s/ZuR/wsGR3tCGyO1rUa1PT6Bw5FL/AGu8Q/Y1zSkb7v6Uv82f9fpGE+bvsMl+auwbP HPlg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="o/hNxA2g"; 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 r17si10023596ejh.315.2019.09.11.15.38.18; Wed, 11 Sep 2019 15:38:42 -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="o/hNxA2g"; 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 S1728854AbfIKWct (ORCPT + 99 others); Wed, 11 Sep 2019 18:32:49 -0400 Received: from mail-pl1-f195.google.com ([209.85.214.195]:36187 "EHLO mail-pl1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728815AbfIKWcs (ORCPT ); Wed, 11 Sep 2019 18:32:48 -0400 Received: by mail-pl1-f195.google.com with SMTP id f19so10789233plr.3 for ; Wed, 11 Sep 2019 15:32:47 -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=OSYcY8IBbPXHFII/5CsrnXT8+IaVG+jk8Oh4t4Zn6xA=; b=o/hNxA2gr0vDUeX9kntmZsI+c644sUOFOjeuCT21i22ln2dgMqCeD+ac/azR80Ssz1 FeA575pCuqYEFUSjPfrcnwZ2dY+6oq8PyzemYUloMch5Qsw7ZJKxtaEPMaRLZi1yacCh dwCK84LSrzklc9yE0pL3xJawW8MODGsnOCLi07pY4uM53SKgRSvuXqnMtwfhgJZk4Jxj P0aNX8We7coIMq3hfcxnM7tef1PTGpkgpeOUycGITRBuG/Zq3MsfCHWrriPK+TuIY4u0 F+L/B7RfsqFnS7zRnnPWV40L4TgtLk7vMsnVXcnsg7uzoXeMmD41j3ZfC3BYib3uB7Mn acNg== 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=OSYcY8IBbPXHFII/5CsrnXT8+IaVG+jk8Oh4t4Zn6xA=; b=JygX35mXv35CoLmQ2Mqg19GSJJcpfKYXnkIvmyXAtx9ZwMNQPZZR37CiKRDOqwoylJ Rk6kNC1C2bg1SF3OZKeRaQNsKQ9Z164UWCHMhlImAYOXMTEICapJ5ROnpQQVR7mBXalr euLAJSkY3oYIqinacsg2rUHopSmXWry3e2xCcKg9HSlFzIS3CLSkvKYLVAMQYTgLtlAO XZBkEl6ZeJkUGTUafRDPbJFs+86Uf6J3wB8AeBnnmtoNxNLuO0HheD4AoZnf0EnDIzjU i/iSWsq8gVC9VNaN1o4FY8ggYAnqJeTmGxs1FDMsIRsx2Ea9+0ZIS4Iu9ppbBU0j/GUd 2NGA== X-Gm-Message-State: APjAAAXZRu3aAgjnRDf2fZzb+GBuMjHIN/MefVhw87k8B7PxkHKU0Y+v +t0v8f8d0+SgNz6BW1jgqGr2k/3DWKwRRA== X-Received: by 2002:a17:902:7792:: with SMTP id o18mr37634234pll.73.1568241167291; Wed, 11 Sep 2019 15:32:47 -0700 (PDT) Received: from localhost ([49.248.179.160]) by smtp.gmail.com with ESMTPSA id v5sm22415190pfv.76.2019.09.11.15.32.46 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 11 Sep 2019 15:32:46 -0700 (PDT) From: Amit Kucheria To: linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org, bjorn.andersson@linaro.org, edubezval@gmail.com, agross@kernel.org, tdas@codeaurora.org, swboyd@chromium.org, ilina@codeaurora.org, "Rafael J. Wysocki" , Daniel Lezcano , Viresh Kumar , Zhang Rui Cc: linux-pm@vger.kernel.org Subject: [PATCH 2/5] cpufreq: Initialise the governors in core_initcall Date: Thu, 12 Sep 2019 04:02:31 +0530 Message-Id: <6ac50a647b8b9ee4af70a33fab10bb5df4a6b5ff.1568240476.git.amit.kucheria@linaro.org> 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 --- 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