From patchwork Thu Oct 17 12:27:34 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Amit Kucheria X-Patchwork-Id: 176581 Delivered-To: patch@linaro.org Received: by 2002:a92:7e96:0:0:0:0:0 with SMTP id q22csp849544ill; Thu, 17 Oct 2019 05:27:58 -0700 (PDT) X-Google-Smtp-Source: APXvYqzsihxkT4OFvwz2/iF0swVAlPqY+nBLlH7JYQTx7gqJROEIrf4fjxKa48nTOZidc1WqrZR0 X-Received: by 2002:a05:6402:8cf:: with SMTP id d15mr3348474edz.225.1571315278304; Thu, 17 Oct 2019 05:27:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1571315278; cv=none; d=google.com; s=arc-20160816; b=kL+3MzMcLnCyqJMrQ3WAVF9ht6oX/omiNxzOIIWCF8tIFfCXDG/hlAyZcmowygJQDk vXYLJR7KRQ7en2DI0hDWB6LrvqOAM3NOtfAC7Wd1uIGZq+7VHgLuYWm3l28DT+wyDkik ZoHPbVuuyH/AweM5zERMqnpcN/UhtmhNmMYrd/ZQ7SEe4itCWu4a2bTIuGFnkeWiUa+l 8A+V8DX1ovYhj0KoZcvkSSWktwMET9yhwVj8+VDopttMJWw4IyGnHLBjkqxbF79X3fBz VWyY4hPv9ZEojq16ddIvFFLHChAM0HpwzztDlL9F3Cp3WyG+q/Ql1EVZPtyi0KQ1fseo dBZQ== 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=J2+dIH77bj5pUXUsovECtUNC+eDZQzRNadhd1RCEVqs=; b=BL5tpyUI7FxMdYkrIhPrIm2H0wEzkHO/RDneCexjeDny+jeCxx2EIAlFGNVE9VqJVl IES+Q0LoyEUc1TqtwlAR0HFN8s1Rq1cmr/48jdXncUZuh63hSR+cXJmgAVQuTx+zvK6e FapQI1mUkLyk0C+9gsznY5a4nIsNsptIs1j1oJZL8PZP0T8i/PJULmQH8LTjXlVmP2y8 PfIB7iv0LC3wS3eMlLOYQRvMmDhfMSRz2wi9vuvoysMzP/oMl7a44xdiag4saHxpBhoM eIxF7wb4UmQw0KsKAQy3DGeTUppAlzAqhnw1hNufeQFMSUOuX8zZxg8GudBVkBvaTopy brhg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=H8ydhIBW; 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 nh5si1259865ejb.154.2019.10.17.05.27.57; Thu, 17 Oct 2019 05:27:58 -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=H8ydhIBW; 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 S2502343AbfJQM1x (ORCPT + 26 others); Thu, 17 Oct 2019 08:27:53 -0400 Received: from mail-pf1-f193.google.com ([209.85.210.193]:45801 "EHLO mail-pf1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2502333AbfJQM1w (ORCPT ); Thu, 17 Oct 2019 08:27:52 -0400 Received: by mail-pf1-f193.google.com with SMTP id y72so1551991pfb.12 for ; Thu, 17 Oct 2019 05:27:52 -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=H8ydhIBW4Hdav4jAbhdZFLfJHJ/rNTYXcPXSEpoc1DBwisHhHI2hsG9clVYOgLtj5Q lwx83X6r3G55GLeR9g55BvIxOwYOzNyZeHAmUKLgPyo5rPoXK0lxel4Nrp+YnCViHgNS GtvuCSCCb51pgg5WL64XgulygN4+2/iTQa39xCZjpAkuwLrkRehJR9O2DPH8k/F1ARfs IRPkGRYPhsEr5qrRWF7lytjQ7cNCDA0S2kJDoVsXnh8lSVkgwkN6YNmstydqRPPieqpw C3OsKtmoRM2XSUxCOT+zeAfxj7MuKI+45kSs77GROL4WWApel3iJZTmUv+RsR+Q+WMpb Y2Hg== 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=eimEhYg2h5UCYExpzC6iR2xcTXcPLq+8EL4nUlGTQx6/J/AApiqtjMq8+FO/UDSdd0 6fyPdHCbUmObc1XdYwIzPKRBsSVa56lI+BMPfocT9qEi9w1sL4+614WooZBqwqU3nH2R MUSdp634xM4HggiCcip31yAjfTF6Yl8UKRUUi5gbYkFbzEu92dHOWyzuTzFZzIlUDGbj FcDisb9K1H/xmEDhvlcV2DmwLcPz9Tx8V2Au1hp62fIOfX7FRGfUWu73fmnCU7vuUlnV Ad5AHaoFz6brQPNVNPl6D3QBdakr40zhxfemm6agbqCIXB8apYOtu1ZjT3QFOrWrwFQk 72JQ== X-Gm-Message-State: APjAAAXoO5lspd1HqVcFfx3+F30+BwJEubXBkhc2vG+kl42G65pJ6It6 9E2ptBpTH3DquXMUfZHpKP+5nTkZeP/NpA== X-Received: by 2002:a63:1f25:: with SMTP id f37mr3859122pgf.50.1571315271392; Thu, 17 Oct 2019 05:27:51 -0700 (PDT) Received: from localhost ([49.248.54.231]) by smtp.gmail.com with ESMTPSA id q76sm4615049pfc.86.2019.10.17.05.27.50 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 17 Oct 2019 05:27:50 -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 v3 2/6] thermal: Initialize thermal subsystem earlier Date: Thu, 17 Oct 2019 17:57:34 +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 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(-) -- 2.17.1 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 12:27:35 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Amit Kucheria X-Patchwork-Id: 176582 Delivered-To: patch@linaro.org Received: by 2002:a92:7e96:0:0:0:0:0 with SMTP id q22csp849566ill; Thu, 17 Oct 2019 05:27:59 -0700 (PDT) X-Google-Smtp-Source: APXvYqypb9crNodD45xC/K/7c+m4Lo2RNHO4o5MFjVlBdv2KgZHp+mm2jP/+xiFpNkX6taAAuU8n X-Received: by 2002:a17:906:35cb:: with SMTP id p11mr3280103ejb.128.1571315279280; Thu, 17 Oct 2019 05:27:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1571315279; cv=none; d=google.com; s=arc-20160816; b=IUwHR5WdiRNWIfCxk0+mp+/PHyXaMU7hZkGE7eWyPkth612M9MUQ1c3OyVvW9yq1aJ R+eefMzKbwTB5j8+m/seBQvlDddNOXCWD6P7/VHLsBhPrZuvnMHItRMfKcSLKcWOjzof Ee3RovphxPiaL70vlwhDFb4M5DZVo03UzFCpOIXayrU1VgDbayH3tPYF+98gWeDAjNcF kolenf+jNRGwElnXGAW+WHkTEtWICEacAmY5hlPaQBQvGHQvlXFkPPYp52fQDmzWJuMH Bg5o06205BG3EZi8xp4sbW5xdhtHy+PWPrztSdTC6Et0XfO1NaJ/i/oLB4LBfItJK1Y3 AWIw== 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=zj8vfQVxUl/bPURDKuXZk1EIySiu2/H2tpamTchCy3AwCRnYt67vNv1kWPOlz78gM8 tLwcsx6/vD+wBGIxNoKM7gkvewUcDMAio1DaNyf1lJcagsaDsea3bx0MkQ8R1joYpgP0 nDl5f5agbsLQwxHrlOGo0SMPMSdBLU2CAl0GtbTornRlD0zIXxOIFcMMTGQD5REOsIhe Fh9BU4c3HXBG5KElswmBNhyz0J8Fh3P3LU+0Z9FrDS0LUxgGqADl8sfqz2Q1XRLkopPC Cyaolr50MCmEs9mt3MbNQ6YakY1WrjVKRauNF/3cCtiy1al/Uf3LCoEZn1TJc6BE597Y 5jiQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=SW53kbOH; 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 nh5si1259865ejb.154.2019.10.17.05.27.58; Thu, 17 Oct 2019 05:27:59 -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=SW53kbOH; 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 S2502356AbfJQM15 (ORCPT + 26 others); Thu, 17 Oct 2019 08:27:57 -0400 Received: from mail-pl1-f196.google.com ([209.85.214.196]:41284 "EHLO mail-pl1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2502346AbfJQM14 (ORCPT ); Thu, 17 Oct 2019 08:27:56 -0400 Received: by mail-pl1-f196.google.com with SMTP id t10so1057988plr.8 for ; Thu, 17 Oct 2019 05:27:56 -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=SW53kbOHuCdPg1DuOx63gq8I1iayGlxonA/1rDDbCiItozWianEK9QISjChUx+Xq7Q GNYKWlPIzJcJ+AqJ0dGEwruPuFWCXQlSD5LKyvrMFAT4QUreATzVtl5KT0Tn5lfXwqOO vLizgueqTBOf3dfRa28LH03rBDpHE/MWvmeVTSivYW67EMCfmo82FA+xFzijO9BhEUEM CP51IPGhliOBPBQJI6CNSUMoG4bS6jYpo53QOvQQRtg7NsJs4xsLhkFX5fH/04mJU9tm IEOveG5+RCVMGYpnOIfyvnAmD1ktwtEW8TOdKho+eZLTGahRrwtZBjTlKUimtOEEv31t c9WQ== 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=OzMZk2ytAvRk4m7kxYm4fKejowh1LStOI9sjzrUwye4/jNosWdxKuILVe5DR1wcbt2 chFCUwUflGCFeEwdj3x4vwyKv29eoQmcOekz8gTn9/7YyTvAJ3EXsUX4xHvcf6nVBmod d/cWk4pnGuGqaguPNBr5yC4LaWEoxoqXt2DA1uy9q0eNMfcV9WLHuwGvvPt0EV4ruY3/ LpM/TgX0RudS2N/VRVaAbIh2ZFDFs0+o8I9MuE3SB6UM0XFI1bJI39S8Zq8EXpRFHV1N nlHTIvXd5fKRL2t7Q2+KoJgPHEPjrIuUOlmi7IaGiM40kK7gn42G5Efm3ImuUaYg/D+w DWjw== X-Gm-Message-State: APjAAAVmlAWt6ABPtQhpnkG7S2qXJL3HkHCI4LxrWUAdASAEAK465XY2 IXxQW0+vXkzSlhESRBUoHrfRtbUnph6+Mw== X-Received: by 2002:a17:902:9a93:: with SMTP id w19mr3590819plp.316.1571315275379; Thu, 17 Oct 2019 05:27:55 -0700 (PDT) Received: from localhost ([49.248.54.231]) by smtp.gmail.com with ESMTPSA id x72sm3907375pfc.89.2019.10.17.05.27.54 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 17 Oct 2019 05:27:54 -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 v3 3/6] cpufreq: Initialise the governors in core_initcall Date: Thu, 17 Oct 2019 17:57:35 +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 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 From patchwork Thu Oct 17 12:27:36 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Amit Kucheria X-Patchwork-Id: 176583 Delivered-To: patch@linaro.org Received: by 2002:a92:7e96:0:0:0:0:0 with SMTP id q22csp849631ill; Thu, 17 Oct 2019 05:28:03 -0700 (PDT) X-Google-Smtp-Source: APXvYqzE0PbZIsXBliFMMc2JTDk6p28h2Emitbg35GrtnvbHtJRy7+z3bkKzM1s1rBKASlNIVAA4 X-Received: by 2002:a50:d083:: with SMTP id v3mr3430577edd.51.1571315282885; Thu, 17 Oct 2019 05:28:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1571315282; cv=none; d=google.com; s=arc-20160816; b=Uv9C35rKUYhBPYTM4bNLYZxy5wI0+C2zn5AzoWy3a5O3/+tah39KTGs/qrS8EZHIOL WSqpQmYr/XFGP7cwfor9/TImggN7r2e9G1iM0rWY5bp9KCLpFb4cbI6LofpKa2vC9cpN XR6B9by+KU82Ef1N6RB932Q6QHKcvJW87yrJQAnLr/5ll/ZIQYeUP1MLxB4OBdH2nBKk Wca42fEvXTBgLwTQ0hvOiFb5WWIEk7w4BhNhjoU29sSqOEaY4dt7vzqPj1BSUx+EI2qu htBE+03gWlwtqv5IfuaL6HVFbDfgdXAe9CUgGhCJy+PK1NxHpspeWodHzvhRSxxrwEk3 BEDA== 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=Dxo5X+E9Ol1EaiMF1ZycTVksoTfNCn6yYqPoCwK1ut0=; b=D6Be49UIfKCToCz0FGs6dsKJ8q0fMbHVBVQofxiD8DDA8repiE0udhXzV8LjTI3O9v ABjFmV1BWITi4oILI8B4nnKe0DWyValnct+cUEmQhzrdzTfsE4Pocth9b2eTqumOzmss jeCzR9ohHk38MIpajuc03vFBmXcBZdsXiDDk5S+oYDugvhZproGQuvrx/iR35t99yOwQ IHEyjWv7CkcpHP1iCNv5B6gTA25ha0vj8XDKAHumlg5wcMIIo8UpIyHkim+K8HCYNUJK W/gp8gdWxAmZPwRlfVrUGitpel+izq0F0ULRtpG5K/bRlP0GPFnHEfXsJhDb/qDHWGVP EH2g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=egK4qvYj; 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 nh5si1259865ejb.154.2019.10.17.05.28.02; Thu, 17 Oct 2019 05:28:02 -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=egK4qvYj; 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 S2502369AbfJQM2B (ORCPT + 26 others); Thu, 17 Oct 2019 08:28:01 -0400 Received: from mail-pg1-f196.google.com ([209.85.215.196]:45478 "EHLO mail-pg1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2502359AbfJQM2A (ORCPT ); Thu, 17 Oct 2019 08:28:00 -0400 Received: by mail-pg1-f196.google.com with SMTP id r1so1262942pgj.12 for ; Thu, 17 Oct 2019 05:27:59 -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=egK4qvYjE7EBixFsyZw/Kr078NfjAaHkhTpbfmT1U8TUKYQS3TWhZar7iJge8A07DK sU5cpQuotBcsaO4hCkFmOhPY4FbwLuQQd5m0yXzMcvo+Z69ZOXqN3BdJr2IRKQYu7vCp K9ScS/0a9YyM8Tbd2gkLDTPN/49QzDpGta13xl6ZRzPqnGn3vmMwJQHkR4SYu1b198ho KdjwHZKZZwzew3KwyZ4tYS3rNUjoJBb7eAcf+PRl70qDYOzmOMpzxBKtUDNX4wnNYRNB DmtCOTZLc81gvkP/WIFXEi6syWHVXvfPUG9JjfK3ScoMSMcs3xwFeFyeyUgAULQ653oh 693Q== 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=ZBIIjsMYAbNdcRbME1aBwOeRfwr3mSxHBB2Z7gCa+iNZ7+tJIPPA1J3egqQtDDJ4NA 5fZpMltXcgxYv4dvklW3U28FC17K+9KsUwg2s2r8Bdr0EVcJN47irZl/3/ZPGt27+wx+ 1r6oesK75hZ6QJzQzm0uFnpiFNZ7g+aaad/FGvi3FDAvbtevlP/aPXo5ejP55Qa7/hLM R1kM4TmISyajUISKtkfRIIK59bvY2OT1VpAO0JL/2ToOTAISd6JTPf9v6ix3vMQBX9lV VNeow9G64Nhi/BNTYUsNPiajXkgLRtTqyA/8zI4TzPBjBhPU8/NfQDQ8RFBchPbthmff zC+Q== X-Gm-Message-State: APjAAAXaJy/pQskOaB+2NeRQDyY4Z4x0Cj2bYfNaVjSFiZcvJlJNl3db FXCgy6s15RT9dWvMj/2nlF1yt42QqPYxRg== X-Received: by 2002:a65:689a:: with SMTP id e26mr3852060pgt.346.1571315279010; Thu, 17 Oct 2019 05:27:59 -0700 (PDT) Received: from localhost ([49.248.54.231]) by smtp.gmail.com with ESMTPSA id 207sm2692918pfu.129.2019.10.17.05.27.57 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 17 Oct 2019 05:27:58 -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 v3 4/6] cpufreq: Initialize cpufreq-dt driver earlier Date: Thu, 17 Oct 2019 17:57:36 +0530 Message-Id: <9e2bce44ed6bf3aac2354650fc3bf5c43e2155b0.1571314830.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 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(-) -- 2.17.1 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 12:27:37 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Amit Kucheria X-Patchwork-Id: 176584 Delivered-To: patch@linaro.org Received: by 2002:a92:7e96:0:0:0:0:0 with SMTP id q22csp849763ill; Thu, 17 Oct 2019 05:28:09 -0700 (PDT) X-Google-Smtp-Source: APXvYqw2w1p7eV2JMsiSAopusqHpS9sUafXucKfJRoFg3AXDkcqYHAkvmqAsdtvJI9x/tjkR+IMb X-Received: by 2002:a17:906:4716:: with SMTP id y22mr3185605ejq.225.1571315289054; Thu, 17 Oct 2019 05:28:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1571315289; cv=none; d=google.com; s=arc-20160816; b=hJRra9RhUkiLzwP9eRmkZgkjMAEscilfot4W6iUXv6ozH0ya4xkVCmr+0xa3jjrc+s WgyOLJcZtRi+UAOrsfWhkSzGavhEBFNtj+VlBcRCD6vG/XtJGvGXRMapLeXix92QlbMq UM90hhifiRCqgpWYCdnfpfohDIp9Wd0ZoWT9Ww3nRZTZHHnVjrsc0Vz1VAgji8sMAFOo Mtu3m+1BCkRNsNSM/vaodrrsG/L3cz+Nu5KStNG0wpgQi6cSEnOhksL6eCb6cSgDD01q nIJzhC/li8MapcmXg2i99HTiGbkGUGS4E+MLwOV2lyJxE9AtO890a4zVUVZOVpV5iujL laYw== 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=yAYxsDoF1xODxjQtRc8reB4aVCGjGyEgdApmFBnl6Wc=; b=Mlw8QDBwB/vnLz9VnkHaD9cfyGipDpcZXJAeLVB91DMf2AfzsQUiwb2rj5jZPsG+am /42vWO7CI8akRknFGKX0zj73mlWx9fOEqePx7+FPC1RDN7Ghfr6B/TamwDPEl3r6bJK2 8TVCkc62EGzGav+oxpd2Ui5zlpmuWb4LbDrpyDU+vq2GxZntpmaBQ+6AzLR8m+5i+vNn +UsyJFj6ej1zGdLchVnvCfUi2Vo0cFI6XLQlJF77t93Hsd7gYBcWdbEMfad3u1gu/p2x 50hBuqKgCzks5P2GFlIZezmVSJ5zkxf8Umdj3mA+JsrOCeGzMd+QDTm9ataJwkIrhlRr nfNA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=k9hgU7NH; 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 y7si1214729ejp.378.2019.10.17.05.28.08; Thu, 17 Oct 2019 05:28:09 -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=k9hgU7NH; 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 S2393680AbfJQM2F (ORCPT + 26 others); Thu, 17 Oct 2019 08:28:05 -0400 Received: from mail-pg1-f194.google.com ([209.85.215.194]:40238 "EHLO mail-pg1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2406227AbfJQM2E (ORCPT ); Thu, 17 Oct 2019 08:28:04 -0400 Received: by mail-pg1-f194.google.com with SMTP id e13so1275126pga.7 for ; Thu, 17 Oct 2019 05:28: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=yAYxsDoF1xODxjQtRc8reB4aVCGjGyEgdApmFBnl6Wc=; b=k9hgU7NHph1qugDb4UYF1VcEpVVzTOUeZX+19VID6ZcwkAdvKbRfvm/jXaLFkFtFL7 Z5LgfHWmMv+oA1SvgK8tZ095jKiFqZ63kU8dXbAXxEaplEIGfTO5Ef6VNW+jWzD+D4O2 q1BqPUK3KoV2Sp87Ha4ePXWPvRky1jMljuordFeWKJagkqzLLWMf/85OmP7OVbG7mC/y bbL9jJj3+IUrcBN/OVP167HGInDbjXqZfoSqzXYiBn8OzM7aYgjriAkydjZ5xLGuHfCK T+mHRMhSUS98vkShSgrwXfs8KuSG4OzIiVLft2C9h+z6aqoWYko65JWjC4rvpjM6SJO4 KIPg== 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=f+NQoIbQ9NVKpF2wB/J8am9ctKfFw4pY4kKx6cS8Kr4U4e7ahTgfkzf91CK/UAE/GM w5H0cwcHYO1GKvMSdLMr3Xj9j473VoNMaRm3bPjSSiJC4EhPW0/4GipBg2xX7VzPUxgM ajKh+w36+SeOgQemyfENP31KN0FJ//5oLjifSq0xSMH5wLGtI8ytnJ8W0RajQvt//8UZ CghPQgG2H+YRF6nVaNZq9quJPqcp8jmOO6BiaL26D99xs3HEkAsOJTtEXajdEzGZEGmr Fa9gslcJ4P/eAuEZEzXzG7Kgx6k/jGjOoUHo75lAj6xqagoDzGRzb7pAruSVzhec6Tzi qMig== X-Gm-Message-State: APjAAAWEDJFnfkp9d4eEwI1GkC6n8k5QI8RK7iLJkPf7eTATAwFSCzPM z7Y2S5FrMrvkjwOq/ZHXycCYShLKltg74w== X-Received: by 2002:a63:2dc1:: with SMTP id t184mr3823889pgt.196.1571315282768; Thu, 17 Oct 2019 05:28:02 -0700 (PDT) Received: from localhost ([49.248.54.231]) by smtp.gmail.com with ESMTPSA id y7sm3033120pfn.142.2019.10.17.05.28.01 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 17 Oct 2019 05:28: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-clk@vger.kernel.org Subject: [PATCH v3 5/6] clk: qcom: Initialise clock drivers earlier Date: Thu, 17 Oct 2019 17:57:37 +0530 Message-Id: <5f1ca3bfc45e268f7f9f6e091ba13b8103fb4304.1571314830.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 clock drivers on sdm845 and qcs404 in core_initcall so we can have earlier access to cpufreq during booting. Signed-off-by: Amit Kucheria --- 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(-) -- 2.17.1 Acked-by: Stephen Boyd 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 12:27:38 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Amit Kucheria X-Patchwork-Id: 176585 Delivered-To: patch@linaro.org Received: by 2002:a92:7e96:0:0:0:0:0 with SMTP id q22csp849780ill; Thu, 17 Oct 2019 05:28:10 -0700 (PDT) X-Google-Smtp-Source: APXvYqyj8aeqSrgmY6obn4ENrMN0qaIZQu5m1Gm6bHfLn2ygwGatBDLJq8r/HF8GbBNPpkiqDXLP X-Received: by 2002:a50:f742:: with SMTP id j2mr3385186edn.253.1571315290157; Thu, 17 Oct 2019 05:28:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1571315290; cv=none; d=google.com; s=arc-20160816; b=vwfDYiLEeBX+PJ2uFzgSy7p8qvnKhn1gjN45j9IGhEUBpm1o6gqsoYTxPjjECq1oTU I5u8QnUxk6TXVxfYZfv0EgqjtPfv200TaRpcnXp4YxJKlKhY8HHFBtHPYiYaJq9ms8Vo vleo3DvYM6YzypwsCdRkV1EvwKQ32Z6ZrKrSVTq6dKh7IuMVAQTaniR6lI6uvT/gS/IG D3f9xApUKDF84xqmMUUKN2yW0toEcWaraKSSJ11sAiL8vsBPLTEIOZPDeAutFyFzns60 JeApWPyD1Sm3lPvxLObzMGdiii8pLO7KJGRAHdnN8BCAbdTeVCDUxKRzIKfu+bKJ3eZx 34lA== 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=smRwPgvncTjnAR1YtPvLb1bA4/kxUscSlcxDGMtB+pk=; b=isNc6Zw/T7+ohYPSS++veKxvvz+I76ZploltiR0vGZAQOshjUvGs87XnFt/x9QsQpJ TPSeTXD+mjZhOM//RujZBn7C1zBdgmbK7GJ4LTIPOiulNA7yAI2qSn+r+kinGQgzNGst 9G1R8xOUZiPQf4YkvXk40POItTg25c06rHHnGz+9R19Kl2GQhWb93g1+pD98pG5Lp72V Q0A1qhLlaH3ddQl49jZQQPojSX4jeP6Ar+T0kTP13R8c/jXemNEi7saZw/bCzaTn6M51 /k1KEHnfUInVVUZKmalkKRFFuNJeni9lg72ZcwYao5CKQJtuw4m0/v9gz7O0k873M1WR H4cQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=CXTEhQJB; 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 y7si1214729ejp.378.2019.10.17.05.28.09; Thu, 17 Oct 2019 05:28:10 -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=CXTEhQJB; 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 S2394049AbfJQM2J (ORCPT + 26 others); Thu, 17 Oct 2019 08:28:09 -0400 Received: from mail-pg1-f194.google.com ([209.85.215.194]:42141 "EHLO mail-pg1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2393750AbfJQM2H (ORCPT ); Thu, 17 Oct 2019 08:28:07 -0400 Received: by mail-pg1-f194.google.com with SMTP id f14so1267207pgi.9 for ; Thu, 17 Oct 2019 05:28: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=smRwPgvncTjnAR1YtPvLb1bA4/kxUscSlcxDGMtB+pk=; b=CXTEhQJBPSdCMw+IoywZVcKHtNxz/LdSoAfySQJBtoF3why8XyOtLveH0F98ftlzbg lGN1tXAB5pOEi228FfTu3mTnbXXgzEL8jxCzcBQNqxu2Z8iqUYLRzTfa20NlNC2uWZ1A csJXKyMDgWRqHhEHI3FWP4EE7cwtkQ6TyPV0ntYhcX+uT1/ULigN1FbKODf9k4HqW+nx s1fLpu7h7BX13D552cMBe2TzriGx4y8IjiEFvEIpuM9W2e9wMrAOZlCFxB7Z3qrlIFgN NsDhWCfxagZcFmKo4ORUuv9OA75QRv2XeYORTsFjVx57Kj0GcbMHNK+j7izjMyYer3UC Hb2A== 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=moqZ/r6+JpAnOYLlVBTUW5jBfOF7gxl1LEs5hNKzBDPTZ0yIFKbBOVKKqU507n1MII IkslCRx6ltlxlSMl2ImzbkYPBFKQ+1uSRfThb4dFvRCGAiMVtgF43A0+HhIigmII0x7W cSVsCU3z9fjCebzMs4xc2dQoV/gp09KLUdC4h18qEe1YU2zCQZfOL2Oy6JxDjY8N2U9A RfzCgx9lz3DQqi6n2L5/EgMH9SvMqV50PZR1YllEbXnnstXZXoZQlQ/2x9tFSF03lHMs Lvpgant56z1Hu6PQIf4kfxDfYrB0OqFehPEAigU5QrEINN8idF/as8EYNODP8glxiuqV OogQ== X-Gm-Message-State: APjAAAVX0TjFwfGGaqwpRIUkB9GuzOnJAsDap+Bgao6lhOFAzvkkTR/5 AAC1MvnO1GnuMYOYxZFDy70XR7dt/ygkGg== X-Received: by 2002:a62:7643:: with SMTP id r64mr3573835pfc.106.1571315286536; Thu, 17 Oct 2019 05:28:06 -0700 (PDT) Received: from localhost ([49.248.54.231]) by smtp.gmail.com with ESMTPSA id c128sm2897104pfc.166.2019.10.17.05.28.05 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 17 Oct 2019 05:28:05 -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 v3 6/6] cpufreq: qcom-hw: Move driver initialisation earlier Date: Thu, 17 Oct 2019 17:57:38 +0530 Message-Id: <3468b8cf9c764ea139296ee149d33cd7a9d79e3e.1571314830.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 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(-) -- 2.17.1 Acked-by: Taniya Das 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) {