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: 177074 Delivered-To: patch@linaro.org Received: by 2002:a92:409a:0:0:0:0:0 with SMTP id d26csp3336730ill; Mon, 21 Oct 2019 05:15:49 -0700 (PDT) X-Google-Smtp-Source: APXvYqwfIxwhZE4EiVE8Qnqvr/TbBLabWpibW7EJxqyYtVJ3DiTQG3Jlq/+wrLaiA5DanDg5O5kJ X-Received: by 2002:a50:99d9:: with SMTP id n25mr8226544edb.263.1571660149467; Mon, 21 Oct 2019 05:15:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1571660149; cv=none; d=google.com; s=arc-20160816; b=QMzCSHyYz+g5bzAw8QKDquOBI1paE38V/gBWAwPWqsORTZDw8MrpAE7YL/sN3ufeZ1 KF7V43jhNptBEFoMUZ0r++HvmhuGZdTbo6ceqpNznzukhcjOfL4CmwlnFcX96rcgANjG HQqzWuAy9QDlSdy5bCDhWETsgr8iIlfReGeJP88PIS2w2bKM72+AwC8GbFKZdoCBssIu nTbZStIWPJZUfyIdJNJOUcMCycPcYesmnpH48XnRWwMY0nudkHt9yIpP6Ny1V02euCFj x5nA6cogQdPsjw0WYF9CQr/KmhCH+zELwQ9HbsKjgQBjaCryDH4/rjt2mgv5RjTr2R3e LKfA== 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=Cukx8ujHc8MZYDdytnpBWfM0F4aiiT0HrshMHuyoYiA=; b=o/XXtkygNrouoW0LOXnGmS8D61sz2LS6gY35POt04wzqLBf+tO/3fitJVC90tfpn7s 7s1TwyqAYc9WSau5qX9lwi580rQH69tVjVzI3Cq/h8eRYOytPtwY1zPYHmjTUGalSmXJ q2OSC929pVkrExpi4IE6ejBArWxMluIv9uxVfQ24D9sCzCiZNpx6tv/nC7vmNkqzOM76 Ryo0ffWpPRmwuLgmOf467mQj4UEBZegnRLnaSlhD4U9gkrVQJofVSLCwFZAjEWXkqtso Rs0hBNayXRau1Iu3V7Pcw9aAFyisK1Oi8XgUFNPf/PnNlaANmgaI+jDAOlPF3MUQ1Aaz AHbQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=EW5sDR0B; 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 l22si8322486ejr.149.2019.10.21.05.15.48; Mon, 21 Oct 2019 05:15:49 -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=EW5sDR0B; 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 S1728725AbfJUMPq (ORCPT + 26 others); Mon, 21 Oct 2019 08:15:46 -0400 Received: from mail-pl1-f194.google.com ([209.85.214.194]:39773 "EHLO mail-pl1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728713AbfJUMPo (ORCPT ); Mon, 21 Oct 2019 08:15:44 -0400 Received: by mail-pl1-f194.google.com with SMTP id s17so6532792plp.6 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=qTWEpWWBn3CXq+pOQ5FfgvAyJtyZKErbQYF48iVi8IS9LMWDfO3jU6BpdmaWuJdnbp xRtEddiA6S5hRmlnf9LutR8Tpd9K2dMLo8H+kqvueSLdRizxV0MVYqKueAFXB54OAiPa rjf5y16IhszSa7xmG5SfxMWZAkUnaANPUejbmM+JGOV8yfsD7UsmUOeVUWkSHkUoEaHj /6VtdZNFSUckPQRXvjUERY32bXomSiaeqQIxQD7l0Bs8s/6zsb1u7rcx9+EtDrfXGA9W 4iL9Jn0cqiF7QXIWm+PAls98WpFeM2+tw9jQh/Cq42yYBlFONpaKvggdn8Z9DuXQpHpC vpHA== X-Gm-Message-State: APjAAAVWHjTSggvA/00AlpTEkcNUtGjf/3olwVxdPsycxux54euzk+Zs PmtlWZlGPID1EJ9NMr0mR6lx5nfNtTeVxw== 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-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@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(-) -- 2.17.1 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) {