Received: by 2002:a25:d7c1:0:0:0:0:0 with SMTP id o184csp868316ybg; Fri, 18 Oct 2019 08:33:12 -0700 (PDT) X-Google-Smtp-Source: APXvYqx3gYh4gPh2HT0t4qYBZORDmjyiLpOypUd26A5wgnZ0sb6S4zc0lohaC1Oi4BCC0uyDxPaK X-Received: by 2002:aa7:ce8e:: with SMTP id y14mr10211379edv.5.1571412792127; Fri, 18 Oct 2019 08:33:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1571412792; cv=none; d=google.com; s=arc-20160816; b=F8fdhWqxPQLrJpuPte17OQ0b1dUibmOreWOW1f50kwk5uIj5/GXyo4htJQLE6DAJEr kARSGQO5M0iH5vjO06xs+EW90WQcF26g6UVYCsr9fJ2ZoMrTiIb+Wne1CpZMPWpqZ3yO 9GPMnp6y0FCjGIEsQVfP6VJ8l/c50mc88O8upaFp3Azr9mlwieNlPAC2XOhu573sTK7y uQW3neP4U+yAfVVsdpWJwlPBnDVxoDGg24VDQMZWMAJrAO3bh2CdElltKsZ3jEyjwabB Q9YyN81jzAuPqn/35VefezJiM6/10ORXrrRqHr5a6h20YPlm/9Y06gy3uGDUgNpFUbgh 7Gxw== 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=aLWbrtyPYURQ3A8b/YTs+J/RFIGlNMEQ+rvTC3OgdE8LHvZFbpW5ndcmV4orSZV8L9 xLfslNr+BxwWIg5jIk2kqApx+GNECsR3vZ7ezFiaTYVCd/X61roit4q1iaroW0gQ84xz 6m7DHli6udYbBWBtgiPxLDo0fwzT+Vh4C+rJb79zrq8aeuYJJVFfMEIo40epLXWrGmf/ jkdkd7WEBiBSzgLEeFGtbYmjpZVjG9dRLMEW1vbWxRrL/6r7rciWZH4GHCMvoUlMJBrA IBF2vxvN2o5pRHF/4jMJGaktzJQIcaXBunclUxcZ8pC4VSqHR5RTHecmOSjNRLs/Crrd goLw== 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-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 pv13si3710303ejb.79.2019.10.18.08.32.49; Fri, 18 Oct 2019 08:33:12 -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="RjcqwM/1"; 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 S2408863AbfJQKbA (ORCPT + 99 others); Thu, 17 Oct 2019 06:31:00 -0400 Received: from mail-pg1-f196.google.com ([209.85.215.196]:35513 "EHLO mail-pg1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2408806AbfJQKbA (ORCPT ); Thu, 17 Oct 2019 06:31:00 -0400 Received: by mail-pg1-f196.google.com with SMTP id p30so1115408pgl.2 for ; Thu, 17 Oct 2019 03:31:00 -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=SFGMiT04v3Q2GLrO5ZAIYDbB/q4fDbm87LYYGgGWbds/iJHidHDnrgwvSJ3F9IhNLJ u6fiB1ucUxyX7Q2k7NDXqG8XxvTyj2QE8MB4PI8N7vBqUBOujo6Q7REG9v9HXYzO1UVX U/t/mnjOZZIjqUZs++MYTON/sO9uRSLtroTzyxh1DbkJ4ENefVgCYzbq1JUE4L6W41U3 X5CoH21Zc+NJke2mDiTyKHmCD/VatmLpCj+Bzu0e+gkesNcuRfz4xF7FEMKwBQpymh/I qo6i1FVLSvjl8+Ce9UMl6J6OAJgVSCxmqlOq6ckdp1kfM/xruKQEcii7fQcg78W6199b S4ww== X-Gm-Message-State: APjAAAUhKFbIejWl9phiKp4PxJPjaBpKqcbNLLiDrDtgMm2SZE/x7/T2 8XLJhYWWcnFLawzYlz8JnO5aOs50FzIRgg== 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-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@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