From patchwork Thu Oct 17 10:30:50 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Amit Kucheria X-Patchwork-Id: 11195373 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id E808317E1 for ; Thu, 17 Oct 2019 10:31:04 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id C591C2089C for ; Thu, 17 Oct 2019 10:31:04 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="QyCYbcfV" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2408872AbfJQKbE (ORCPT ); Thu, 17 Oct 2019 06:31:04 -0400 Received: from mail-pl1-f196.google.com ([209.85.214.196]:34905 "EHLO mail-pl1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2408806AbfJQKbD (ORCPT ); Thu, 17 Oct 2019 06:31:03 -0400 Received: by mail-pl1-f196.google.com with SMTP id c3so934224plo.2 for ; Thu, 17 Oct 2019 03:31:03 -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=J2+dIH77bj5pUXUsovECtUNC+eDZQzRNadhd1RCEVqs=; b=QyCYbcfV/to97a+xYWNSXEdx2HU7uHt04NRbH5yfS2adyMH25lzSgFB9Ep8/KbqTs6 Zf6HjbvRACc7tNrYuU7r6di3rZe8GmE3IA8S8ZiIxJ6KPj5o2rGokTTpZnoQ4LfuZw7x ZhxTDPIbjS/TIAPNiC+bZF+F+NfbMS9bvW2uIFHvA9oXuNOsRxBQBd54vrXbno3eLb2k gktYoUlsnie81rVAljMFA8VOZ1a1P8Y5Sc3HVHP6PBJQoGnESySHtq427OUVSZrgLW0h HErNTlmrHH7o1G4KT9XRcsqVDXMNtk24QM8VB0d2CfPbRwi/qrgH/OfPAQJ4MWED3tBl 0IDw== 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=J2+dIH77bj5pUXUsovECtUNC+eDZQzRNadhd1RCEVqs=; b=envF9u9SpF2XOCCAVev1o0c6/45PrJaNVaMSnukKqs99wPcVbU9aiEMnYd8+68FGSF Y9g9GeATId9LWeJlyadGVxp242/CEo+ch0dC8Nglez6qVu6cuK6wjFVFomkzffYdIKFK OyNZLKkDQ4Eh4JHOQ/pnpSsyKThz6ZyZnLpkuFh+nt7QV9BeHCYOeCAP2r1xAfffCUMq FnAhur0pOLcL6+bRNpqo41ngYie5PncYm4pYyU181JilDi+qH17aq7knwaSM5hgYSTnP DzEPPQe3mmgv+Y6BmhnUCVHUWdVg83ifaltfgH1zmAsBpEF8v/IK/qRPNG/Z4QLMKZmW wacw== X-Gm-Message-State: APjAAAXmWxYN+HtLmPcdpXdoODTbGgi4tyiMCZ1Wsjd/z3kb+qFQzOuQ UoKL8xnbhq23qgl50Xy2PaUKQg== X-Google-Smtp-Source: APXvYqxjthyxtXwtCwKSStHwr0eQbZynMEuV7Z6n5rxCk1q33ZXyI9gQsBP1++XEWau5aZWeN+Fb6Q== X-Received: by 2002:a17:902:56e:: with SMTP id 101mr3180603plf.90.1571308262888; Thu, 17 Oct 2019 03:31:02 -0700 (PDT) Received: from localhost ([49.248.54.231]) by smtp.gmail.com with ESMTPSA id w12sm3285919pfq.138.2019.10.17.03.31.01 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 17 Oct 2019 03:31:02 -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 1/5] thermal: Initialize thermal subsystem earlier Date: Thu, 17 Oct 2019 16:00:50 +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 Now that the thermal framework is built-in, in order to facilitate thermal mitigation as early as possible in the boot cycle, move the thermal framework initialization to core_initcall. Signed-off-by: Amit Kucheria --- drivers/thermal/thermal_core.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/thermal/thermal_core.c b/drivers/thermal/thermal_core.c index d21b754baee2..d8251d723459 100644 --- a/drivers/thermal/thermal_core.c +++ b/drivers/thermal/thermal_core.c @@ -1537,4 +1537,5 @@ static int __init thermal_init(void) mutex_destroy(&poweroff_lock); return result; } -fs_initcall(thermal_init); + +core_initcall(thermal_init); 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: 11195377 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id C7DDB14ED for ; Thu, 17 Oct 2019 10:31:09 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 9BD8F2089C for ; Thu, 17 Oct 2019 10:31:09 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="mJkfaeHT" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2408875AbfJQKbI (ORCPT ); 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-Google-Smtp-Source: APXvYqy1LP7Lthi555ShDVQUVG8kkkNA3uUgauY6GCI0jNrgtxDAa6pq5gTrjM3/cNT063eg1b02vQ== 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(-) 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 From patchwork Thu Oct 17 10:30:52 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Amit Kucheria X-Patchwork-Id: 11195383 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id EA50217E1 for ; Thu, 17 Oct 2019 10:31:13 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id CB02A21A49 for ; Thu, 17 Oct 2019 10:31:13 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="KW3BHAnA" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2501978AbfJQKbM (ORCPT ); Thu, 17 Oct 2019 06:31:12 -0400 Received: from mail-pf1-f194.google.com ([209.85.210.194]:37695 "EHLO mail-pf1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2408886AbfJQKbL (ORCPT ); Thu, 17 Oct 2019 06:31:11 -0400 Received: by mail-pf1-f194.google.com with SMTP id y5so1374926pfo.4 for ; Thu, 17 Oct 2019 03:31:11 -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=Dxo5X+E9Ol1EaiMF1ZycTVksoTfNCn6yYqPoCwK1ut0=; b=KW3BHAnA3ZG/qmHR83tqDTQoBB/pASsfBUD3L7y/uxYm+ylMPd0OKaWIpb4n0HzS/E EYaeSCe6isd90Rcp58Y07VJDgZuK3eHJKMz7kN0aPgb1CVtG2PUQRnIBtgn9h0C+VMHl y6luwu9znrRZkMmbDCVZ4LiOF3bn2MYxrDzO/eTQomXyZUOXguHHFeG6RQFxPgekfZ45 TGnUosAC0nM0oAlfv7cac1ilKsI3ruMycGhZdpGypWfVrt59uIWbTn+9nQSt4VeMQfvx zQy1fJJSGruXYt9u6NOfcFgvkIzkFOHEA2j9rjYMv+gWdaHHOSDufQC2DJfYe4+Cc+va WhPw== 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=Dxo5X+E9Ol1EaiMF1ZycTVksoTfNCn6yYqPoCwK1ut0=; b=aA/UkgOzpfO8K2pQTi1a9xHrYUlhMuvEZl9crjCio7LCUumWcpBsLlk1euKyTOslBw DB8OI0EkQJ6lGiEilJrdgmOsY74J5ENeBsulNKCzRKNNfQxpCAlQv9cO/HWTiloDFocY rZBvclnPriXEZJQE9TRRTPO5B5FigBY6/8bDRvOkk6elkYcWhzp08v9CADgTkaW1/jXm pz0Qgu12jEm/WKJKjx5SLSR62RmqEqZ6tiwehT1ujpg+aul6IbGzJkkugGYk2MiB9zXo s+mGTdBL2xa6XGJ37IlYxqbe3RvWUWpThNiIWIPw5htKNAv1mLM02Kc3lEGHOIalM+Ba lT5Q== X-Gm-Message-State: APjAAAWoMiEmUJoIVlCQYSFuW7zS+YefUtz/GC0YeoMXd5AjY4gqqBhb 9QMzrhgj7t2YFnkPhNBDw/n8cw== X-Google-Smtp-Source: APXvYqytDxsj5uZXimsuRfWTtmIjj/DZcWCzXQPGXBiYqeQJAKKVZ3aGERc7nPIMqHVILSjuTwRtZQ== X-Received: by 2002:a63:5b07:: with SMTP id p7mr3416921pgb.416.1571308270667; Thu, 17 Oct 2019 03:31:10 -0700 (PDT) Received: from localhost ([49.248.54.231]) by smtp.gmail.com with ESMTPSA id b18sm2153445pfi.157.2019.10.17.03.31.09 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 17 Oct 2019 03:31:09 -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 3/5] cpufreq: Initialize cpufreq-dt driver earlier Date: Thu, 17 Oct 2019 16:00:52 +0530 Message-Id: <9e2bce44ed6bf3aac2354650fc3bf5c43e2155b0.1571307382.git.amit.kucheria@linaro.org> 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 This allows HW drivers that depend on cpufreq-dt to initialise earlier. Signed-off-by: Amit Kucheria Acked-by: Viresh Kumar --- drivers/cpufreq/cpufreq-dt-platdev.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/cpufreq/cpufreq-dt-platdev.c b/drivers/cpufreq/cpufreq-dt-platdev.c index bca8d1f47fd2..3282defe14d4 100644 --- a/drivers/cpufreq/cpufreq-dt-platdev.c +++ b/drivers/cpufreq/cpufreq-dt-platdev.c @@ -180,4 +180,4 @@ static int __init cpufreq_dt_platdev_init(void) -1, data, sizeof(struct cpufreq_dt_platform_data))); } -device_initcall(cpufreq_dt_platdev_init); +core_initcall(cpufreq_dt_platdev_init); From patchwork Thu Oct 17 10:30:53 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Amit Kucheria X-Patchwork-Id: 11195385 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 178FA1668 for ; Thu, 17 Oct 2019 10:31:18 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id EA20E2089C for ; Thu, 17 Oct 2019 10:31:17 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="iC2Af2Y4" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2501994AbfJQKbQ (ORCPT ); Thu, 17 Oct 2019 06:31:16 -0400 Received: from mail-pl1-f194.google.com ([209.85.214.194]:33835 "EHLO mail-pl1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2501990AbfJQKbQ (ORCPT ); Thu, 17 Oct 2019 06:31:16 -0400 Received: by mail-pl1-f194.google.com with SMTP id k7so935849pll.1 for ; Thu, 17 Oct 2019 03:31:15 -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=yAYxsDoF1xODxjQtRc8reB4aVCGjGyEgdApmFBnl6Wc=; b=iC2Af2Y46Q48FdvGdaNCTJQWCORwnw78D049tRe8+wBCpljt9U7Qn95yg0fi6nJ24v HRH1hHOymiUJtnG/81nWV1WdomOj9Vb5eo+tknLXOXhbCPWwSJ1O85eOb6ZLWBfxZx73 nm6axiRp9TDykYVuVJT1+hVIe9CWVmg4T2pn7qlImdrTFS/00QfgYALSKkffpn3OebN4 lRBjq1HBr7CvUfdKaUTJnsEwJwCkZtDjPSpUt6I5Qclgo2OoGIEqD83dOUQDpiI2KEtm Gpo34FDCc4VGpwC73SzpFoFB3PgrToTo5wPbgo2tW7x4MD9ZE0RrD9GMRN+ad20Tg1gR sA5A== 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=yAYxsDoF1xODxjQtRc8reB4aVCGjGyEgdApmFBnl6Wc=; b=nNxWOWRnmEB1zkWB6UWaMZodxAiHsdQtQevxlVe4/9i4jExFLX9KkSm65uuC2RgdBl HzHsXPQL1mLMpU5EHI9SMRQXxkq2xK73fRk2WjeFCjjSCG4mGZlwrm6r/7jJoNkpZUyO p85bEB5L2aC5Rg9sZB3Vn8w7QUQqrVEbDK/D3uixmSPzeTkC8NCZeEo4Py9YlvyGKAuN RlpG31rt66Ntq2sWg0SxnwAed4jqY+347Mi6of61XpZflKc2PWwcUghMUI8LjZYgzY+w hcUEzhoOED9CKIEZq+lRij/Cq7XtEopfurGvd+Wv3vptr9ZJ7LtXfSioLPCv5QCx5gQl c5FQ== X-Gm-Message-State: APjAAAX9pb/CTDWaTncaWfS8Y8pYt0DVSsQVmdsM5FY6y5m7U9GxEU3R eWzRk9Pcs8UdO+QuLAKA6Fg2Ug== X-Google-Smtp-Source: APXvYqyNIoDQlqqbRpfGllvxFaO8itQeEnNEO04t0hj2VGtP81j+uZneDao+xFrh7G83yp4YDjih9g== X-Received: by 2002:a17:902:222:: with SMTP id 31mr3300158plc.169.1571308274634; Thu, 17 Oct 2019 03:31:14 -0700 (PDT) Received: from localhost ([49.248.54.231]) by smtp.gmail.com with ESMTPSA id ep10sm14892051pjb.2.2019.10.17.03.31.13 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 17 Oct 2019 03:31:14 -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-clk@vger.kernel.org Subject: [PATCH v2 4/5] clk: qcom: Initialise clock drivers earlier Date: Thu, 17 Oct 2019 16:00:53 +0530 Message-Id: <5f1ca3bfc45e268f7f9f6e091ba13b8103fb4304.1571307382.git.amit.kucheria@linaro.org> 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 clock drivers on sdm845 and qcs404 in core_initcall so we can have earlier access to cpufreq during booting. Signed-off-by: Amit Kucheria Acked-by: Stephen Boyd --- drivers/clk/qcom/clk-rpmh.c | 2 +- drivers/clk/qcom/gcc-qcs404.c | 2 +- drivers/clk/qcom/gcc-sdm845.c | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/clk/qcom/clk-rpmh.c b/drivers/clk/qcom/clk-rpmh.c index 96a36f6ff667..20d4258f125b 100644 --- a/drivers/clk/qcom/clk-rpmh.c +++ b/drivers/clk/qcom/clk-rpmh.c @@ -487,7 +487,7 @@ static int __init clk_rpmh_init(void) { return platform_driver_register(&clk_rpmh_driver); } -subsys_initcall(clk_rpmh_init); +core_initcall(clk_rpmh_init); static void __exit clk_rpmh_exit(void) { diff --git a/drivers/clk/qcom/gcc-qcs404.c b/drivers/clk/qcom/gcc-qcs404.c index bd32212f37e6..9b0c4ce2ef4e 100644 --- a/drivers/clk/qcom/gcc-qcs404.c +++ b/drivers/clk/qcom/gcc-qcs404.c @@ -2855,7 +2855,7 @@ static int __init gcc_qcs404_init(void) { return platform_driver_register(&gcc_qcs404_driver); } -subsys_initcall(gcc_qcs404_init); +core_initcall(gcc_qcs404_init); static void __exit gcc_qcs404_exit(void) { diff --git a/drivers/clk/qcom/gcc-sdm845.c b/drivers/clk/qcom/gcc-sdm845.c index 95be125c3bdd..49dcff1af2db 100644 --- a/drivers/clk/qcom/gcc-sdm845.c +++ b/drivers/clk/qcom/gcc-sdm845.c @@ -3628,7 +3628,7 @@ static int __init gcc_sdm845_init(void) { return platform_driver_register(&gcc_sdm845_driver); } -subsys_initcall(gcc_sdm845_init); +core_initcall(gcc_sdm845_init); static void __exit gcc_sdm845_exit(void) { From patchwork Thu Oct 17 10:30:54 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Amit Kucheria X-Patchwork-Id: 11195391 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 0271614ED for ; Thu, 17 Oct 2019 10:31:25 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id D49FE214E0 for ; Thu, 17 Oct 2019 10:31:24 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="DDQW0dW0" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2501991AbfJQKbX (ORCPT ); Thu, 17 Oct 2019 06:31:23 -0400 Received: from mail-pl1-f193.google.com ([209.85.214.193]:36178 "EHLO mail-pl1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2501996AbfJQKbT (ORCPT ); Thu, 17 Oct 2019 06:31:19 -0400 Received: by mail-pl1-f193.google.com with SMTP id j11so928154plk.3 for ; Thu, 17 Oct 2019 03:31:18 -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=smRwPgvncTjnAR1YtPvLb1bA4/kxUscSlcxDGMtB+pk=; b=DDQW0dW0reHs8t1GXSVyT9VgUmlnBcjxefVEiiSkhjqDBKk6/6035Yl+3gAe3iREvz aEfAlmZCgqggMlR75cYhw+NRjIvUTX3lNVXQaue09BQetHpE9/mVW5+bwVYmASPpCUCg VMiBx7zjSopPB1lPhYghf7lylEASdwn+lDyZlX8eQoajYOkkQEjL3P0oebZJ6/uTY02u RcEl7YAv7sTaoQm6kcNNyFyUE2y6HJuT4r+UCVJLimmo39wSX5IPtjB7oNJvysjqpL0J OZiN61pd5RMvEfFfpAULYiMAeW0j7gMu9I9ZyY8z490J2vX9UEWcA1DdQBqobPtpq2Bc hM6A== 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=smRwPgvncTjnAR1YtPvLb1bA4/kxUscSlcxDGMtB+pk=; b=i0e6jP6DbQEFHOFa/dO6llJMajIil0JOqnort/3gaQmeI1oCdAW9VoEYJ0Iym1a+kc VtByNiLIE6sVLQxdcGLYQErbiBuY8LhO0X4wDpRdg57eBNODgYaSuxLTKO63DeuOSTWR Tvfiw2GD868hwMoR88lcvy39f/Tm8aaF87CxmgRfcM7Cqq+8qw6xD89rJdDmPAc7tqae AD09m72m+i5/PBM5RhJ2Q9D7z5DYAS3dAAwudrhpuaeEZNCf+ZCcwjKNiUsn/xcBgiRs nJnLzukfrMOvGRh348Ix4SpHnT6+iSXGGp8tB0qPS7XdpJsDWVFJqCqPvuY5IDJjmOUz zsLQ== X-Gm-Message-State: APjAAAWi+e3Pj1NbwQWrJajhEu3xL0BxqmiXgtw2THRrDHUYUMexG4o8 s6VlLSwawzZsOF6KrY7QllNBSurcn5f6mQ== X-Google-Smtp-Source: APXvYqwGQKQHsOV8uBmheqM16mQRxnhppIgWy5oZkoWCLezI/u2DUJJPCreCJsUc0l3q9jmUg1xGrA== X-Received: by 2002:a17:902:bd47:: with SMTP id b7mr3278948plx.28.1571308278241; Thu, 17 Oct 2019 03:31:18 -0700 (PDT) Received: from localhost ([49.248.54.231]) by smtp.gmail.com with ESMTPSA id p189sm2040225pfp.163.2019.10.17.03.31.17 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 17 Oct 2019 03:31:17 -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 5/5] cpufreq: qcom-hw: Move driver initialisation earlier Date: Thu, 17 Oct 2019 16:00:54 +0530 Message-Id: <3468b8cf9c764ea139296ee149d33cd7a9d79e3e.1571307382.git.amit.kucheria@linaro.org> 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 Allow qcom-hw driver to initialise right after the cpufreq and thermal subsystems are initialised in core_initcall so we get earlier access to thermal mitigation. Signed-off-by: Amit Kucheria Acked-by: Daniel Lezcano --- drivers/cpufreq/qcom-cpufreq-hw.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/cpufreq/qcom-cpufreq-hw.c b/drivers/cpufreq/qcom-cpufreq-hw.c index a9ae2f84a4ef..fc92a8842e25 100644 --- a/drivers/cpufreq/qcom-cpufreq-hw.c +++ b/drivers/cpufreq/qcom-cpufreq-hw.c @@ -334,7 +334,7 @@ static int __init qcom_cpufreq_hw_init(void) { return platform_driver_register(&qcom_cpufreq_hw_driver); } -device_initcall(qcom_cpufreq_hw_init); +postcore_initcall(qcom_cpufreq_hw_init); static void __exit qcom_cpufreq_hw_exit(void) {