From patchwork Wed Sep 11 22:32: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: 173648 Delivered-To: patch@linaro.org Received: by 2002:a05:6e02:ce:0:0:0:0 with SMTP id r14csp1341857ilq; Wed, 11 Sep 2019 15:33:03 -0700 (PDT) X-Google-Smtp-Source: APXvYqytffpIyauSazsWzL6atmGXRhkOAZKo7jlBFsEh5wc39QblUIQbmCHfqkZfy2SkgDmMZw7B X-Received: by 2002:a05:6402:b0d:: with SMTP id bm13mr26354503edb.125.1568241183078; Wed, 11 Sep 2019 15:33:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1568241183; cv=none; d=google.com; s=arc-20160816; b=yrm6tYgaetVn4uGo7wbQklAvpoEMt54XSTD4b7aOCeAf/yk7BZBKF8GZfbmopg8/cF 8snqdAZ7PqtWjNZLwzEpF4ZEd5Q+nDIWNMlKes8rwVdUq5dBjJEXSrlvBycnyjkdDKNr d1N4XbMi8k3hc69WtNemeOaFGm1pydmgFJp4aEejVu+7q5zqMUey1aXpMcUS84jQx4y2 j+UxUU5+g7IHbsVyxjGsR8Uw53LdP7lAR0mLOTbkpfDjVrUcbKsa7xt3g0Y/UyOKFVsk YXB3U01GsF0iQ7YrsltZ7UZyfX0f120LteL5+hnbTpjHlC2SwSUYwV9iJQ0oK3DVCVjN H3vw== 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=eHfwVmwRPrvBBQCHCMtELR2XIT6WK3JZDo6MrEMP+JI=; b=p9HvyZut2JOyfegSG4DRA49lYe6HakxHunrGA9cTDJKu7NMZJfwQxUCLx0g5AEr5WG H/YrCRfqQYSNkMChs6vytkAWT+zoadWhajYigAzD7qlhZYvZ/w4GZZ316BcMs0q2IvYw EDCk222wdqESF0te1wtKV1RMGT9OJF4lYwL7jLl6gR8mdbi8ronDJLVnAcI3Dj3/NlA3 tq2u98hk3rEvs0Caw7mL0iAeZn8mNvV7wLE5V269NqymtPI6ZfGjZxpUXYu+4xcRJu6Q BBbXpvV3tmiVpqqG45kEySsisYLqkMzF/unh2H1yS7aubdVIBs+CUyoh6F5tSgl793un RYXQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=iIqmRKYb; 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 l21si11708302ejg.365.2019.09.11.15.33.02; Wed, 11 Sep 2019 15:33:03 -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=iIqmRKYb; 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 S1729060AbfIKWdA (ORCPT + 27 others); Wed, 11 Sep 2019 18:33:00 -0400 Received: from mail-pg1-f195.google.com ([209.85.215.195]:42833 "EHLO mail-pg1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728224AbfIKWc7 (ORCPT ); Wed, 11 Sep 2019 18:32:59 -0400 Received: by mail-pg1-f195.google.com with SMTP id z12so709061pgp.9 for ; Wed, 11 Sep 2019 15:32:58 -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=eHfwVmwRPrvBBQCHCMtELR2XIT6WK3JZDo6MrEMP+JI=; b=iIqmRKYbvavAa/xuuU8kPkn7fxW5tBdl+m37NywaOZtqPeAc9v+0vQMv1An+TbS/lq h2h/lvNN7VuQCP5dJHAqjPqeE84W7DrbhAXAPa7fOnwH4R9zJCBhJcpU2a7J9weR7se0 hEZVIg+idKp6P3t3UXVpLxNPkhdMK61ihXOBWZUTZew9Bbo4OYl6lYRkaVfAPVTutAxH eQZS0sGdSY+f2lYxtZWKCQt0ptOk112EhKPbLjHY0UUgyM4Dab/lcE2Ye51VrQVmmeUv ehGxPIHQpkPl2H0jFp3cQpp0pCy3SJodRf64SQUKKyI6xZ8y/JLjVXSIV7XDFh9HHj2Y QQ+w== 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=eHfwVmwRPrvBBQCHCMtELR2XIT6WK3JZDo6MrEMP+JI=; b=CcNv0AuGPBC26e7sUYFqn4pz1EulAACb1HgNd46LMs+WeQkZ2YGB9+ZJsnSn8xGOdb XZHZgOsEcl96B3i7E6kYCJFmAODEcnHA+/uO21D9AYPCfrIL0+sIEY01ma51ctm5KMTn j2nwrwXj11NEahMJZUdB71hD6bhtHKeQF37DznmzB7JRwBVWmu+9OriYuvGuG/z1PV0D uum4HK4IRukQBLYfCK6GQJrwV1wf2UD0Ug723MtSK7+PtKLgxXHPFSsW+uJxOshxCbCc t+ZY1uXMGbh1OlRKBjt1bbXU+zpDBOQLUbj8Gl6wB85X81e4sT3SGyDWRdQwKeN8vtAB vZQQ== X-Gm-Message-State: APjAAAXy6MwQeMS/39FnN/SolhC2tLRKkWThrXtF7QOx7aLdFbv5QT7O l1BQVvDpVP+L23gVh66HlnVVhxJfuG1kKA== X-Received: by 2002:a17:90a:af8d:: with SMTP id w13mr5333319pjq.141.1568241178117; Wed, 11 Sep 2019 15:32:58 -0700 (PDT) Received: from localhost ([49.248.179.160]) by smtp.gmail.com with ESMTPSA id t8sm3431343pjq.30.2019.09.11.15.32.57 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 11 Sep 2019 15:32:57 -0700 (PDT) From: Amit Kucheria To: linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org, bjorn.andersson@linaro.org, edubezval@gmail.com, agross@kernel.org, tdas@codeaurora.org, swboyd@chromium.org, ilina@codeaurora.org, "Rafael J. Wysocki" , Daniel Lezcano , Viresh Kumar , Zhang Rui Cc: linux-pm@vger.kernel.org Subject: [PATCH 5/5] cpufreq: qcom-hw: Move driver initialisation earlier Date: Thu, 12 Sep 2019 04:02: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 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 --- 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 4b0b50403901..04676cc82ba6 100644 --- a/drivers/cpufreq/qcom-cpufreq-hw.c +++ b/drivers/cpufreq/qcom-cpufreq-hw.c @@ -327,7 +327,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) {