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: 176561 Delivered-To: patch@linaro.org Received: by 2002:a92:7e96:0:0:0:0:0 with SMTP id q22csp715592ill; Thu, 17 Oct 2019 03:31:25 -0700 (PDT) X-Google-Smtp-Source: APXvYqxaTn1ojMY+fqhuY7hUYVjiwWqiXYR1CZme6PZy/4G6quP23OKL4HUfv43QWUFBUA3wIFL0 X-Received: by 2002:a05:6402:21c2:: with SMTP id bi2mr2947588edb.8.1571308285624; Thu, 17 Oct 2019 03:31:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1571308285; cv=none; d=google.com; s=arc-20160816; b=cIMEoJRNpDv97n7V8pVxoZ3mQCzVX9xsHhVagYA6m8AFoeQPWj1rWrAQAV0wpN2DbT Ad2bhL9pWwktBOCamSkBVnYn70m33JcdwGgbgezsjRfMSB821yj3xR/bFWKrWYCdlPlg eWSbKNpHu4zDHLME+naoiRwmxKsr48AeMhnhS4etOAo4ZU+3S8Km3DxPcZm9SGYpHkbf bnkIDbgBGKO2XyzIFhvW6IL5xHGlZTmE1ZiMHZ7ZYM6Tq5DzUOm5CQScDDH053lgDFQo w5+TvYgqn4dyDVc9wEkGQ3QqDtlP9RvmSDSKYD+7jMU+cmvxOd6+c6ML1foNvuoYIO6I 3a5g== 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=Gy5IoGAT5ZFjkMIYsmP1f9m1tzaTWECbFhElA2JkzGI0oseoCdQR6sxGOgnJ/uiM8S btkH7kh2CYsJikV/AYl+hxoi1gwsQPKlj3F4LHXB6VrqznmzHTgxzbKGXuIayQtI6QCR 7mEMLjX34PxoM724uPJCmUW3eixYfZGH9Q0v88gPtVpgcCzoqgl1l65fEH8HcF0HW1KB niseqnWZwmx+j81zTOHjLmpiZUGGfdn4kAgOP2gav35o3B4B7pGfIMrj6Vgc5lcQPzS3 CL17O0ICvNkedIeaGV8xmAcA5/vnGdFg+pxqiBJwVV0CE4oJjYKXDSNtfluEF7w4MMNa UyEQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=DDQW0dW0; spf=pass (google.com: best guess record for domain of linux-pm-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-pm-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 t10si1241496edd.447.2019.10.17.03.31.25; Thu, 17 Oct 2019 03:31:25 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-pm-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=DDQW0dW0; spf=pass (google.com: best guess record for domain of linux-pm-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-pm-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 S2502001AbfJQKbU (ORCPT + 10 others); Thu, 17 Oct 2019 06:31:20 -0400 Received: from mail-pl1-f195.google.com ([209.85.214.195]:39035 "EHLO mail-pl1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2501997AbfJQKbT (ORCPT ); Thu, 17 Oct 2019 06:31:19 -0400 Received: by mail-pl1-f195.google.com with SMTP id s17so922377plp.6 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=PrPFx4FFJ/gn0nwMwnJ2mD9/rG40oQOVjjq4wbFugrE3zHT2oeSdt4AjJy5/2PaOVh lrDM/UrUVBvIyeE1lLO1RK0UCA49bJVENG/MdcjeC01ruWeUxUJMWldqXC4LVwGORvJw Td+Yk8/VJKFUUeRQcILJmZ4kYtuDffn6llWbmOmqKTJ8ayqzpbBgPNxaeh26DCFJmxTh 3gTCJdqVvUfaLemR+M38GCoOf6gl1wGGDmMNPb0aDpCDgEe7tSNJuJucCrq5Gnwkw4d0 vlRwhfaHYt80SU45KzWpYJiBxTSWxJBiWH/xFGNNzE8o94SeIw9FkCGy3AnwPKl8ZVc+ rf0w== X-Gm-Message-State: APjAAAWfk9bz0C8p/aEk8GYyjtYdDHhDHF0SNbLiP37E8XoaVTOWNpSA Yx6bHcyQN+kSokI3qDJTowpglw== 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-pm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pm@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 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) {