From patchwork Fri Oct 18 08:51:59 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Amit Kucheria X-Patchwork-Id: 176780 Delivered-To: patch@linaro.org Received: by 2002:ac9:3c86:0:0:0:0:0 with SMTP id w6csp557627ocf; Fri, 18 Oct 2019 01:52:22 -0700 (PDT) X-Google-Smtp-Source: APXvYqwxsizUee4uEEND8JS9F7wRpufmjuM4REsZ/pS87nV4KI8fn4rMDnS83fYgz5b3JSxhpven X-Received: by 2002:a17:906:cc85:: with SMTP id oq5mr7358572ejb.81.1571388742766; Fri, 18 Oct 2019 01:52:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1571388742; cv=none; d=google.com; s=arc-20160816; b=xG1aJUQcnnFBMjmtX3KgXIhUBj4kwvXUEaOvu2t/8OoB6Yh9UPxZ8JTArbfgCimTa9 Idm+JFlJngJbTEzXyECIAYT/cqGaJxdykQuE5Pq318ocWTM7Qnd2s9iQY7NiusNav8Cr /myIMPTBsflio0r5wTGf2Rd6HhXP3YSb4yGQd/DNVytTjvQyHwBlSNmqxchjYubkVYMY w0PuO/MU52n544mQQC49yPbA6NjRKt7VVd3d7NnydNvhH83rxEFG1/BsT3/lTuQkXvBQ ROkr9zUNOOmGXc0jFJPQnEhxcFKbSlOh+WPAiiw8uGu2EdYnjaTdVyKZ/G4f8gmX/Zt4 388w== 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=OV9GCJs4s7auzZpPSYG5QvReU/tq3thTyE+8LoeVN7Y=; b=u/TX1q5RAqSyzSxmIaIwxbCuQYH6pecwKUrjUWi8PCVgYTFhpO2HK7zuOuid+YKToU n3w4CuATZI65kg/yd0H6YuuV4G0mV5yjpOlLy3LbdOn+G4CS9ofFsqyT6oMy8VcA/dq9 IeyZ6WXrdFXlfPvXKvt+YWKrilb50fo6IqAUHt0tLggLzD9ztXU7j+GqBYYEG0pi+5CZ aSsufmY5AoltFDD4DC51msPYKdUqK2AzmG+BCo+Xjx7lpPMmldmvuMtiPOlsqnRnhMfa 9JjcHi7rLeE4TjqIOg6abN1ibtvqqO/bQoAUw03iqZteqxpb0cCKwwvLjyVXBHPLkUnQ lZzg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=dmfM6j4A; 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 f19si3492166edb.385.2019.10.18.01.52.22; Fri, 18 Oct 2019 01:52:22 -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=dmfM6j4A; 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 S2632961AbfJRIwV (ORCPT + 26 others); Fri, 18 Oct 2019 04:52:21 -0400 Received: from mail-pl1-f196.google.com ([209.85.214.196]:35713 "EHLO mail-pl1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2442246AbfJRIwT (ORCPT ); Fri, 18 Oct 2019 04:52:19 -0400 Received: by mail-pl1-f196.google.com with SMTP id c3so2534234plo.2 for ; Fri, 18 Oct 2019 01:52:19 -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=OV9GCJs4s7auzZpPSYG5QvReU/tq3thTyE+8LoeVN7Y=; b=dmfM6j4ABh73a19Lql/07zj2f/0Iwn3aie8/jiCr1K6Vb5Ytac72LE/hl62BYZwskf QBwjojv+SJ1y1JjFxvkRx0+t3VRWbQXLB4bs1jv9Bgr6T1w7haFGcRELPXqQh8cLsO9Q o/LW/pGLKqF1eb3h0BDTea7w3frkGKdGJ1fc8F3C3UyetgUMZBobiCcynMF0g6pUJd5+ uelEYgHFlec1Kc0m2bSBsZ/9BmMTMOFHR35jIjaxBSH3+KO1kKE1rm8v1Y4A9HPOZB5N 6u8HtAVKYO42M0csV83e7fwx0jGrnSAMPeHvLPR8wH6PomL1eIVbxOHmIwYfaHBw2nhj +fxA== 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=OV9GCJs4s7auzZpPSYG5QvReU/tq3thTyE+8LoeVN7Y=; b=RUwcITMeQMqsrKuGmGANKy2bkEEUmyiuJbbE0MEXnRlxX2Z6XOwFNb8CnU50nW6Cqu sdmLa9yhTBGBgft88whyNtc6NI0J17Fc0/AKPg3XOTeQ36WpTziYcnAdI9R7xvAZFbOK d0G/TUhuVQU58hL7d2YQxBdTMy6A4nyD7CzmS17j493+LeR8+pqTKmLP6n1QiJRXS/Xe OkTQq4n8J/9e5x7ws9tqCr0jiWyaU2te7kTO76SHDrPEMjEE2DRBX3sHbhpzPnWBrnII 8+tQa7VY7wyue+W8MAe60rIqTSQudVuiZAhOn6jeyWncymm368yRlh3QMhHiyxiYzw7F 2sfA== X-Gm-Message-State: APjAAAUNkeYKTQMrjDmkLTqggRnCnv5zU33R4elU0cDPAGztXYzT1m3n rb1YUaeDySiIx6TV3la1KUDVv3u2MhHh7g== X-Received: by 2002:a17:902:8505:: with SMTP id bj5mr8309860plb.296.1571388738714; Fri, 18 Oct 2019 01:52:18 -0700 (PDT) Received: from localhost ([49.248.178.134]) by smtp.gmail.com with ESMTPSA id x5sm5246107pfi.32.2019.10.18.01.52.17 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 18 Oct 2019 01:52:18 -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 , Ben Segall , Dietmar Eggemann , Ingo Molnar , Juri Lelli , Mel Gorman , Peter Zijlstra , Steven Rostedt , Vincent Guittot , Zhang Rui Cc: linux-pm@vger.kernel.org Subject: [PATCH v4 2/6] thermal: Initialize thermal subsystem earlier Date: Fri, 18 Oct 2019 14:21:59 +0530 Message-Id: <511b47ab70f6be4ba0f2d7f69217ee593a0bcfd8.1571387352.git.amit.kucheria@linaro.org> 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 Now that the thermal framework is built-in, in order to facilitate thermal mitigation as early as possible in the boot cycle, move the thermal framework initialization to core_initcall. Signed-off-by: Amit Kucheria Acked-by: Viresh Kumar --- drivers/thermal/thermal_core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.17.1 diff --git a/drivers/thermal/thermal_core.c b/drivers/thermal/thermal_core.c index cced0638b686f..69fcd54f8a83e 100644 --- a/drivers/thermal/thermal_core.c +++ b/drivers/thermal/thermal_core.c @@ -1537,4 +1537,4 @@ static int __init thermal_init(void) mutex_destroy(&poweroff_lock); return result; } -fs_initcall(thermal_init); +core_initcall(thermal_init);