From patchwork Thu Oct 17 10:30:49 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Amit Kucheria X-Patchwork-Id: 176556 Delivered-To: patch@linaro.org Received: by 2002:a92:7e96:0:0:0:0:0 with SMTP id q22csp715185ill; Thu, 17 Oct 2019 03:31:01 -0700 (PDT) X-Google-Smtp-Source: APXvYqzAt0DQeaMOtwvZnAE1XSz1C32qTh41JRrilkv9j0X0JdCQ04Q2xiQhiqcMOMWamMgdLv9R X-Received: by 2002:a17:906:49d8:: with SMTP id w24mr2696068ejv.264.1571308261622; Thu, 17 Oct 2019 03:31:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1571308261; cv=none; d=google.com; s=arc-20160816; b=e2LGzIjYhG97eH65/9g2q0KYze6DXBwKb9yklCwsRimblxdADIBSbSP1QmLWnpkDiw 5XwMznOQ6WU5tLZCSHNtyVU1/906QokZMnWQcMd6AqXuJt7guGatTP69AW2SYjxwc3fB Al/Kru5iuiNgsDhccdOu61QvD2cNCSBQqR3u7k+9Cxmqvu6CkXx3owMpVpyNuxUzi2Ex h961DZcuMm7+TkOmcvULDCZImFrueEce4NNPGUUtRBL2mJBHdg87LyQwOjll3sT55oLh DXy1D3mayR5fOTU3EeNFz6Nawj39y8R5kogjgruYDiBFgEeAy4jLJT7s2di+q/P3JJNt c+Eg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dkim-signature; bh=fXpZrgSR4m1AdPkf5LQ4vreDl7P/F5O2vClvEl9LG+E=; b=j35THOdCvEP+NX7MdbheS8Pv+H9CroqVXIdKA2MEAjC4ACOvZSqIZ+HSeFumERC6dF MvgrLwWQVBRty/IEGKYn1Glk1IdFnzW6sl9tiF4w9AiSa9S6uqRQyT7v61y31XnDxavw qrcrp/XIaOuXVtPb77maEsXTH7wCAmlE4oM7a2f2r1OCYSPIfLvfoGTvQQ/YP0w/WTl2 L2vbyygN3HL73YPGIdq7uEjD95POh99shz0eT93RLq9ykZ7g4ciaecAb6g4NSJOZHL0R XzTch+3LNTMlf4ddA3Usq5ci8z2UQiKV9MhROqoirDx2ohxOzODv5ZG4f/uGx6RIc7Ox e4tw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="RjcqwM/1"; spf=pass (google.com: best guess record for domain of linux-arm-msm-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-arm-msm-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 b14si1090692eju.187.2019.10.17.03.31.01; Thu, 17 Oct 2019 03:31:01 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-arm-msm-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="RjcqwM/1"; spf=pass (google.com: best guess record for domain of linux-arm-msm-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-arm-msm-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 S2408848AbfJQKbA (ORCPT + 15 others); Thu, 17 Oct 2019 06:31:00 -0400 Received: from mail-pg1-f195.google.com ([209.85.215.195]:42904 "EHLO mail-pg1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2405038AbfJQKbA (ORCPT ); Thu, 17 Oct 2019 06:31:00 -0400 Received: by mail-pg1-f195.google.com with SMTP id f14so1090393pgi.9 for ; Thu, 17 Oct 2019 03:30: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; bh=fXpZrgSR4m1AdPkf5LQ4vreDl7P/F5O2vClvEl9LG+E=; b=RjcqwM/151Rh6shqBPSS+/LsnKHp4tPzH7rlCNumhGcdPu5np2zWiScneSjR3DPfNK JSmgBgwcYc2Wq+I+tuFJJfzoKLdkZTa8plMbttbWPHGfnbN/VEmdTGvvDIpHjb5MjRNE wZXcyV2s9EIiPjBgCF+7ZfzX1ofKXFNsnNIAp/5dSWOLt9rkUyJ7HH7kmczmrqeDRWdX yoe6oaFXiJZKhYhvEFhbPeQuZvu21eI033tpasrxjBDx88WiCb6e3TSXmgyXHo6HH1nv cj551XzWC47q5Acat5rKiyCgf5zmD4X9jsYYUc7+7YYDhJh+duAhoXVL1w6B2qyssTDo AgFQ== 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; bh=fXpZrgSR4m1AdPkf5LQ4vreDl7P/F5O2vClvEl9LG+E=; b=ddIIeg5DNUl/VdhoTEYD2VIUtIFf4UskcDP6W2iij4xWRFVbiybSfbUhilwy3RdXzf DJfw+kQ6u0IE3f7wygzCTGL9dbKbvywMlgI/qW6IOuk+scGAZEa66YSogJKuuGXeepr3 igIRVRKALgKKhypOYQHrid/Ky2QPvWlfxKgs7Ux21OuxQ7WhwMc6x4eT4Lnb9M4pmxHF 1rvlxqon1dxw67bOQ19WC2dHUy4kl2o3UiRtZEaKKaIVzZSUGdnbJwMMC3A2kjBmDASP pSJ1WUIsc0Nixlfh2uZPDFEehn8iIOm2gG6camwNxzGP/sldfsnVl/ypO987AIvVPf/v QNRQ== X-Gm-Message-State: APjAAAUS7TUFVMloPsvCyq8pK6as0kFkLiiBKvdEwJo56L3W+HY811wD clH6D4US4TevDfdEDVoHpHFxAQ== X-Received: by 2002:a63:e145:: with SMTP id h5mr3330375pgk.447.1571308259127; Thu, 17 Oct 2019 03:30:59 -0700 (PDT) Received: from localhost ([49.248.54.231]) by smtp.gmail.com with ESMTPSA id f3sm2233388pgj.62.2019.10.17.03.30.57 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 17 Oct 2019 03:30: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-clk@vger.kernel.org, linux-pm@vger.kernel.org Subject: [PATCH v2 0/5] Initialise thermal framework and cpufreq earlier during boot Date: Thu, 17 Oct 2019 16:00:49 +0530 Message-Id: X-Mailer: git-send-email 2.17.1 Sender: linux-arm-msm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org Changes since v1: - Completely get rid of netlink support in the thermal framework. - This changes the early init patch to a single line - change to core_initcall. Changed authorship of patch since it is nothing like the original. Lina, let me know if you feel otherwise. - I've tested to make sure that the qcom-cpufreq-hw driver continues to work correctly as a module so this won't impact Android's GKI plans. - Collected Acks Device boot needs to be as fast as possible while keeping under the thermal envelope. Now that thermal framework is built-in to the kernel, we can initialize it earlier to enable thermal mitigation during boot. We also need the cpufreq HW drivers to be initialised earlier to act as the cooling devices. This series only converts over the qcom-hw driver to initialize earlier but can be extended to other platforms as well. Amit Kucheria (5): thermal: Initialize thermal subsystem earlier cpufreq: Initialise the governors in core_initcall cpufreq: Initialize cpufreq-dt driver earlier clk: qcom: Initialise clock drivers earlier cpufreq: qcom-hw: Move driver initialisation earlier drivers/clk/qcom/clk-rpmh.c | 2 +- drivers/clk/qcom/gcc-qcs404.c | 2 +- drivers/clk/qcom/gcc-sdm845.c | 2 +- drivers/cpufreq/cpufreq-dt-platdev.c | 2 +- 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 +- drivers/cpufreq/qcom-cpufreq-hw.c | 2 +- drivers/thermal/thermal_core.c | 3 ++- 11 files changed, 12 insertions(+), 11 deletions(-) -- 2.17.1