From patchwork Wed Sep 11 22:32:29 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Amit Kucheria X-Patchwork-Id: 11141921 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 5899314E5 for ; Wed, 11 Sep 2019 22:32:43 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 369A220872 for ; Wed, 11 Sep 2019 22:32:43 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="rfyz/8Y6" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728253AbfIKWcm (ORCPT ); Wed, 11 Sep 2019 18:32:42 -0400 Received: from mail-pg1-f194.google.com ([209.85.215.194]:35634 "EHLO mail-pg1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728701AbfIKWcl (ORCPT ); Wed, 11 Sep 2019 18:32:41 -0400 Received: by mail-pg1-f194.google.com with SMTP id n4so12287849pgv.2 for ; Wed, 11 Sep 2019 15:32:40 -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=/bQw1cLtYl3A/83AJDVmJyoX1dKxkgmG5lvK3TLTKfU=; b=rfyz/8Y6c+xb9OzI5IP+lQyuY/4jk4SjFzwznzoKviS07fYRPcefDwgbO0/tpZoK6I Hr6j5zaXTQm8DKWwX7b+psY4sqYKmp13roe4mQ41hWiTxdOBxuQszZcYhn5O5lVNsdHD mF14GkPo2gMFttOdBFO17sLlkUOL48NDIiRooX1wnmYufhbTOE61Z2aSp+0ADr6Txoui ZGGcY16dhu3nAQyOPZCkPyQJXOH6YhZMnIXnCXNKx7aG7Rm051hRhPvIIdZb5HMfS2KC H2ZnpCSgPwFnSm8UwL9hpjvS83u8sgKB2JeVQOqBy3Br5fWywUXmmKmfK9iVuLw22wdI b+0A== 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=/bQw1cLtYl3A/83AJDVmJyoX1dKxkgmG5lvK3TLTKfU=; b=hrhctSgdzplap0lLnMfP8UtYYuIErx7u15YwZqRGez8N6LCIbuAVGOFGlLithQqs9w ejIJV2BPXevxZzd4RfkXUBKvIoOHItWjOaXDBB3wMJYIrDTWk0WP8VqCxqKhE9rO6vJP ELWyZehI23KPfisK6QBI/rYBT3WZu+aN6c+Kn4QAuRgbnIUR+T7Cslb5hH6eaRy2aR0Z E+YisTSZybEd8rjMKu3eIbFMN0ZyppQKZSYumIbe5gfWKrDms7+EK2Mloa0MzwyCSoUx EnA3rLo5B473sxvVDvzlUlVgFLoo/iN7TxnwqiDBqcpxea7Mb12VNcn/+oLozhb1CTKz Zorw== X-Gm-Message-State: APjAAAXixiKAeAImEPy7LLQXq7wYkyubfsqprrhbmtV+y8vHweuiIZsr p4ZYIEeWYHgF2U8Vv2QRGFPT2pEzJXKdig== X-Google-Smtp-Source: APXvYqzUEXKAsnlMNfnDwvV9kBcQAdBfFiGL46JnjJS/6c6L7kK23lwN0m3iztut8dHj03BGHhCU4A== X-Received: by 2002:a17:90b:308:: with SMTP id ay8mr8100469pjb.7.1568241159900; Wed, 11 Sep 2019 15:32:39 -0700 (PDT) Received: from localhost ([49.248.179.160]) by smtp.gmail.com with ESMTPSA id 20sm27074002pfh.72.2019.09.11.15.32.38 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 11 Sep 2019 15:32:39 -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-clk@vger.kernel.org, linux-pm@vger.kernel.org Subject: [PATCH 0/5] Initialise thermal framework earlier during boot Date: Thu, 12 Sep 2019 04:02:29 +0530 Message-Id: X-Mailer: git-send-email 2.17.1 Sender: linux-clk-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-clk@vger.kernel.org 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 (4): 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 Lina Iyer (1): thermal: Initialize thermal subsystem 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 | 41 +++++++++++++++----------- 11 files changed, 34 insertions(+), 27 deletions(-)