From patchwork Thu Oct 17 10:30:51 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Amit Kucheria X-Patchwork-Id: 176558 Delivered-To: patch@linaro.org Received: by 2002:a92:7e96:0:0:0:0:0 with SMTP id q22csp715319ill; Thu, 17 Oct 2019 03:31:09 -0700 (PDT) X-Google-Smtp-Source: APXvYqzRNGWJZ9/EfYyVsRiFhMVhk41nGmG7l6jkhfse/fezayOhHFEOuH9V+yNTfFBlKbvORu5U X-Received: by 2002:aa7:cf12:: with SMTP id a18mr2957138edy.278.1571308269755; Thu, 17 Oct 2019 03:31:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1571308269; cv=none; d=google.com; s=arc-20160816; b=TKFhGOBsOYeZZQ8lOKWV9wIj5LAtVfUUTahjR3GPF0NOFjRQYm9tM4fxYJow2H4bbr CqmePz1Q4dXhDOkPyGuLyZ2ROyJXD64G4xAXqE9m+K/Gfc0FskIBS5/73ufBXFke6fGA 7Z/P3ugjYDfXslnr/sJ9wmK7GqAnzyPBNH1KAcd2BUseh6vRV1h2ewOhPXf35fJ8fwUO xvXuhmlZsogIS0O6Wfuj0Gu5jZJMT5crpVUfbTrqPmhves96zkfiFQVvdhtPwW9lgKbW XSP2cvDFAa9a/v0LzMX2xwnmRF2o2nY8M5O8sdwZtX8q4o1K2Bv67hTHTb1V2PgTLW7Q P+Pg== 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=kKi8k9ZYWkUX6NX9Wz8WTvreqnRj+rs/DKjn/iKh0FH5VCC9MMtYB2q8F7IsTOkpF3 E5WAlliA+Lx/2MUjcviqmR+L4sMx33yJADsSTEzZZZP8eXfMCLmgJ5Nms3VHJHy5ePzU s36pUifm2/tKY2BLXclc7zl1PaGJei9V7XpwxJ++ZdHhi3BUkmtBJYlQ24ce/HdZbmWw A+N+TRiGBGOuO32i9XhTVycv8v/nMyotn0eHwADHvGpOBGOG2C+WEc4asoHDMU8wjTvo 5CYHde/T6jXPc4ESQ9kk8weeP7F1NPOkpz63Pw9t6jEcrSL5oTE/wiwUBFycjuEjx2yT m8KQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=mJkfaeHT; spf=pass (google.com: best guess record for domain of linux-arm-msm-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-arm-msm-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 r5si1165979edo.14.2019.10.17.03.31.09; Thu, 17 Oct 2019 03:31:09 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-arm-msm-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=mJkfaeHT; spf=pass (google.com: best guess record for domain of linux-arm-msm-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-arm-msm-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 S2408875AbfJQKbI (ORCPT + 15 others); Thu, 17 Oct 2019 06:31:08 -0400 Received: from mail-pl1-f195.google.com ([209.85.214.195]:33823 "EHLO mail-pl1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2408871AbfJQKbH (ORCPT ); Thu, 17 Oct 2019 06:31:07 -0400 Received: by mail-pl1-f195.google.com with SMTP id k7so935681pll.1 for ; Thu, 17 Oct 2019 03:31:07 -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=mJkfaeHTf5SBolO1l341lKb2fM/RiZRWB6y8rVMAkkkS+3N2h6YC2xVz6Tm2TmGi+a SXHCEbQSnH8epN9/FUj9MslvLwHwqTbB7LeNYnG8jCOBESG4GHYnUBHT7N9vpHi+kXY/ sH7OmR9uZm1/erNfJi0NzI/usUghKUPxI+ngYZ5YA3aG7p1IpGa/Dl6uUaeP8gPWCFdw jZ/w3TB+FHwiiHELD1a6blOq5bkei/6E8xHgNmhdms7YlSLW1MibS/ABwGmTXTAJTKQP 9V1sbvG363bhskzlo8JPrnWuflf2+8vj5mZuCr9KRgmmTmcfRjb+zii8bAVSmo5Xpgnf y6aA== 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=KnLQTFq9bvstcBiLJsUZVyc9yIGMAwefbkxQ5gx8eiklsHJ1BSZ0w4dBGS54zP74PD tUwZHqeGEWbszc3sJaYeLUifDPIrONIQKG1lDiYhN90AQilugiUpCVqLtiflsf9HSOau D0SqNX1dGr25AWRyazq11TqjEmR30MDZoi6KvsqiAZedUzcvMWVgJLuZ+J3TJoQE61pw zFYJIje5Z9hDeuB/o7uV1iOCk7/DsRFWu03gZa8dN6ejGXCQ0gjMvkytZChjlpLDq5Go PJhp7ITFSiHs9GrXUi9yFnGU/evnHsH8kWEWWl5pus7ceCS6amSOiv+r+bE6cS6TlYhb Fzjw== X-Gm-Message-State: APjAAAU5HZMmtfXGCX8UqSeEjs7WVRFbHhrDSE+S+QG8CFcymycw+hWj KSOhWig0jk0U3qjfvwf4K3gNoA== X-Received: by 2002:a17:902:fe86:: with SMTP id x6mr3301438plm.320.1571308266786; Thu, 17 Oct 2019 03:31:06 -0700 (PDT) Received: from localhost ([49.248.54.231]) by smtp.gmail.com with ESMTPSA id p11sm2133031pgs.51.2019.10.17.03.31.05 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 17 Oct 2019 03:31:06 -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 v2 2/5] cpufreq: Initialise the governors in core_initcall Date: Thu, 17 Oct 2019 16:00:51 +0530 Message-Id: X-Mailer: git-send-email 2.17.1 In-Reply-To: References: In-Reply-To: References: Sender: linux-arm-msm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@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