From patchwork Mon Oct 21 12:15:11 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Amit Kucheria X-Patchwork-Id: 177070 Delivered-To: patch@linaro.org Received: by 2002:a92:409a:0:0:0:0:0 with SMTP id d26csp3336377ill; Mon, 21 Oct 2019 05:15:32 -0700 (PDT) X-Google-Smtp-Source: APXvYqwLRKDwxRkUL72V5Op9LVt0kmEE4++G+Heet5T1Cp2R7Hu47e7M9m2m4GJ3xd4hBljVR/Mp X-Received: by 2002:a17:906:b781:: with SMTP id dt1mr21597808ejb.221.1571660132272; Mon, 21 Oct 2019 05:15:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1571660132; cv=none; d=google.com; s=arc-20160816; b=hOX6eeoIQAeLnkFPExkFUaRNpdbygLJhuQj/P4FZqj4H4r3ZDnPyU+Xyg2H8QvaEv0 2gcDmb257G8XbpjQB6l+H4BoXNzo0klSNgz9kdp0cDLi+q1iD9r6W90t7VyG9D52FgYs 8hnha6y1JpUvDDhfSvM3rsHiObOvBqM3c+hMHyYGQmGbkL+xEzyhOayEGUhp7lBBRtDl i0bOo0+/01fg+BBP+DsfMbG+8KQ862ZT98jhOjwbkG0EPa1h/okSk2APrm7tf8jSomJ4 pkBk9SjnwYlSOsxOd44O9wWyf1SukNiST2GfKE7kCbSls6WvggAiP7sKFDQC8fk6IJxa c/Vg== 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=ZAlguWiGGNU4fvnMyGRHt8lWba1ISHMXCJV2Cg7SlQF559tie251SgIBwzJd6yy7hg bspNWucqfl2NIME5FWT5c5mW7LtcZtQmX4b8JOHKdiZwNNWF2BwpQie9bRychpCpEAWx lBSDSmTHfDKjUT8QPicLv/MORhOdUC2JoyIlnRXdOb/UXFPlWtcBHZkiQWNWzxslN7SC yBfgkCXVlPDYUzHaiPVIasADx3hc2cf2qw6eSxqqY/1JW6S464jetxQdmOXmUnP+WSfQ CIpgx+8GkRdD7zpaNCV7/LfP+RwXQXnbfOVUEsEKxEQ0+Uizj8CGc8pJ/tc9kkNzNvAQ knog== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="NS7ZKy/C"; 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 u21si8402390ejt.345.2019.10.21.05.15.32; Mon, 21 Oct 2019 05:15:32 -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="NS7ZKy/C"; 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 S1728645AbfJUMP3 (ORCPT + 15 others); Mon, 21 Oct 2019 08:15:29 -0400 Received: from mail-pg1-f194.google.com ([209.85.215.194]:36786 "EHLO mail-pg1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728637AbfJUMP3 (ORCPT ); Mon, 21 Oct 2019 08:15:29 -0400 Received: by mail-pg1-f194.google.com with SMTP id 23so7722628pgk.3 for ; Mon, 21 Oct 2019 05:15:28 -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=NS7ZKy/CJRKKWW9c979mMVqT188CSGr/jWJ+67EpTmxEJt+UAyi1cRDiv1812fo/pS u3kaC56+efRbFQ80M9Ze3QN6VK4AEJ71gDz1wks2LVQ5aeBAEZhtqQybfLA0rfejtnbO gbegVPOHbbj8LkvtYQKiZsyIT1jQdUs508eV9I+O/wCi+/Y1F79VBbJ3Kk5q+QPsm5S9 yYr4rExC53BA5VhyEJ8J8zwxQlS+B54pnEQWaMHdrE6mR0TXgqOpo+wcs+bONBYSo5gz kzoWjNtfmJnAmCD6kSw736Gvvjv6RjVD9mmRHy8gmg0H20Gn54q66uExxKiFnaYTa1d1 5OnA== 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=CO4OOmuCJkVTWFmUJ2nwtb3REnNa4ZJB0Oj9AhZM2u69aIBLIdJERLZgZe5b63tOPy xofOtrQdsV6xYINSy00c4aiJydb+KnwcuTujrBYmSZ19Vz2HUm1fTQMCqffEA3kr5k3/ ocpqAn1Ng2LPWQ0RiDIymICbpp8hDuLBjfZwpJGHaQTiymIpbkUGoMZVvOFXCjveZNt7 bl7o7JMNXurnCkT44O9ZcMiUX24jIT6tqqwKbGDhB0H776WQvK/SsOPvKvsvJ6l1Pv9x ozwW9nsROYU0Jl0syQulP0PKFSJRjRWWrzf/eh0WH3eO9rNqFn3Sry4POaMviXdWEKVM yvFg== X-Gm-Message-State: APjAAAVNPkaEVzSvmCtN1jTavilClS2VnEtO8MfEASpncFECpGOF0BtK wf7aqrWxVfiFbZTJAjsNDWkzHQ== X-Received: by 2002:a17:90b:144:: with SMTP id em4mr29096753pjb.8.1571660128323; Mon, 21 Oct 2019 05:15:28 -0700 (PDT) Received: from localhost ([49.248.62.222]) by smtp.gmail.com with ESMTPSA id u3sm14514404pfn.134.2019.10.21.05.15.27 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 21 Oct 2019 05:15:27 -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 v5 2/6] thermal: Initialize thermal subsystem earlier Date: Mon, 21 Oct 2019 17:45:11 +0530 Message-Id: X-Mailer: git-send-email 2.17.1 In-Reply-To: References: In-Reply-To: References: Sender: linux-arm-msm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@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);