From patchwork Mon Oct 21 12:15:15 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Amit Kucheria X-Patchwork-Id: 11202107 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 842C21895 for ; Mon, 21 Oct 2019 12:15:49 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 62A2A205C9 for ; Mon, 21 Oct 2019 12:15:49 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="EW5sDR0B" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728714AbfJUMPo (ORCPT ); Mon, 21 Oct 2019 08:15:44 -0400 Received: from mail-pl1-f196.google.com ([209.85.214.196]:37262 "EHLO mail-pl1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728667AbfJUMPn (ORCPT ); Mon, 21 Oct 2019 08:15:43 -0400 Received: by mail-pl1-f196.google.com with SMTP id u20so6544625plq.4 for ; Mon, 21 Oct 2019 05:15:43 -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=Cukx8ujHc8MZYDdytnpBWfM0F4aiiT0HrshMHuyoYiA=; b=EW5sDR0BhvXc5p2C2yYb6Ly5+xBcSNYaYAMkfBRcHMvST6fBuTLsWUipr6L1RkaRHR EyQ/H1mFn/ZhFeoaHosy+oDTjscGr13sRayWyNPEf5vnw4QJRA35GkR84gG6DyvZc416 VTWlu1owMddSIyvuBExTYfiRkBmm8T0iC4NPVX9FXIOxND35hCBjW51j8vY+xqn4Ztmx Vfl39SaOokAvpylKjusmOdhXZOyMu+1qRqwkgdcNrcewQot7pzpdBskEGhj6Ri86OLDh lrDsx8HLSHqVT07Ud81PSb2H10wWUkVZ/day47X+8dGQjogXPa1x617kWPv/z6Pw8KCl DKFA== 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=Cukx8ujHc8MZYDdytnpBWfM0F4aiiT0HrshMHuyoYiA=; b=NwDupi8XWwrLyMLgPqGYK5fzW/OKeOwAatvz2J/4rWRrDQ2G0gaQ0YKlgRhaE5ujxj pF0ABqhrLCRTTeJlQ7EyBTxDFGBFM6lYx60+Dr302xIfxT7Ty50Pl/mpRuRCPt1G4fF6 NlHNuTM8RM5VWtkW3sXRQRyGK+o9L1gJzVv5cwr6+Jn8srTdaR9yFAI1YFW0parHjMZG jibOnsvxhtC/j4sgziWXvo9tKBJG1StVOcL1/jWUa7wI7kH6vU94Q+F27WpwLJ1OrCbb hOZlioqLlIo1PG5/JdJlf+Jv4B9CUG0JoknJ3qF9s6greFsnWUvmJ/SFhzTB2062kAxL 0CDQ== X-Gm-Message-State: APjAAAWu4sCpC4U8GvYMFt8fRW5H3Kv3dOVwxbPPIeRiTt/xUEnfRubj 79crwtBx+wpAy6psdG7SOqA7MQ== X-Google-Smtp-Source: APXvYqxxOzJafjce4b4GYvuqt+JhynnibQqUNBuGu1L6adXLHdWZzFTJzN1XM6qXNR42+xvxeXPBuw== X-Received: by 2002:a17:902:fe8c:: with SMTP id x12mr14860552plm.55.1571660142988; Mon, 21 Oct 2019 05:15:42 -0700 (PDT) Received: from localhost ([49.248.62.222]) by smtp.gmail.com with ESMTPSA id e9sm12976482pgs.86.2019.10.21.05.15.42 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 21 Oct 2019 05:15:42 -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 v5 6/6] cpufreq: qcom-hw: Move driver initialization earlier Date: Mon, 21 Oct 2019 17:45:15 +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 Allow qcom-hw driver to initialize 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 Acked-by: Taniya Das Acked-by: Viresh Kumar --- 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 a9ae2f84a4efc..fc92a8842e252 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) {