From patchwork Thu Oct 17 12:27:34 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Amit Kucheria X-Patchwork-Id: 11195579 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 80DA113BD for ; Thu, 17 Oct 2019 12:27:57 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 5E8492064B for ; Thu, 17 Oct 2019 12:27:57 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="H8ydhIBW" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2389885AbfJQM1x (ORCPT ); Thu, 17 Oct 2019 08:27:53 -0400 Received: from mail-pf1-f195.google.com ([209.85.210.195]:39211 "EHLO mail-pf1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2502318AbfJQM1w (ORCPT ); Thu, 17 Oct 2019 08:27:52 -0400 Received: by mail-pf1-f195.google.com with SMTP id v4so1569137pff.6 for ; Thu, 17 Oct 2019 05:27:51 -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=J2+dIH77bj5pUXUsovECtUNC+eDZQzRNadhd1RCEVqs=; b=H8ydhIBW4Hdav4jAbhdZFLfJHJ/rNTYXcPXSEpoc1DBwisHhHI2hsG9clVYOgLtj5Q lwx83X6r3G55GLeR9g55BvIxOwYOzNyZeHAmUKLgPyo5rPoXK0lxel4Nrp+YnCViHgNS GtvuCSCCb51pgg5WL64XgulygN4+2/iTQa39xCZjpAkuwLrkRehJR9O2DPH8k/F1ARfs IRPkGRYPhsEr5qrRWF7lytjQ7cNCDA0S2kJDoVsXnh8lSVkgwkN6YNmstydqRPPieqpw C3OsKtmoRM2XSUxCOT+zeAfxj7MuKI+45kSs77GROL4WWApel3iJZTmUv+RsR+Q+WMpb Y2Hg== 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=J2+dIH77bj5pUXUsovECtUNC+eDZQzRNadhd1RCEVqs=; b=Rwa2m6qPY2C2GhEWVBvydxhLK4P+kYzEtrQecIks5TRoGq7qcWEbVFa381157eEtm1 MrAB1YT34r0h1GiboALGzP660vISVgBcsK+CvV2S3i7CC6wDn/mt6bW6yROo6w6eKToE FSTzW7Vf3frrQ1uUd+V4I2RtCbDgiO5UyQqqbI9tugt6IDFPywDqxQ3F2fiXWC1LOi03 MtJu9kJSaVVYPrASrkqnB/MzfDpz1POUVdfwUQEkBkEO4vvWaJZ5u/AMYIrGj/zZLmrO Tu1ctnA7E/bjxmex858KOI+cEMelp5242c/z+2LC/bqzSO+YxSLX3mg6b75YmpF515GU lc4A== X-Gm-Message-State: APjAAAUNtODHJmq2OEuixDfKmmBihfvs2CuxjSXie2AzWbLDGOydE0TK LqW7Rv1iD15JupldTPhV6xc93g== X-Google-Smtp-Source: APXvYqzmKwMCQLucBl0CUBU8zqp2eDcOrDP2n0WXsN6rWk8R0BxLYnGg7GBjIvPXLmEI1tpdhJpSDw== X-Received: by 2002:a63:1f25:: with SMTP id f37mr3859122pgf.50.1571315271392; Thu, 17 Oct 2019 05:27:51 -0700 (PDT) Received: from localhost ([49.248.54.231]) by smtp.gmail.com with ESMTPSA id q76sm4615049pfc.86.2019.10.17.05.27.50 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 17 Oct 2019 05:27:50 -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-pm@vger.kernel.org Subject: [PATCH v3 2/6] thermal: Initialize thermal subsystem earlier Date: Thu, 17 Oct 2019 17:57:34 +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 | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/thermal/thermal_core.c b/drivers/thermal/thermal_core.c index d21b754baee2..d8251d723459 100644 --- a/drivers/thermal/thermal_core.c +++ b/drivers/thermal/thermal_core.c @@ -1537,4 +1537,5 @@ static int __init thermal_init(void) mutex_destroy(&poweroff_lock); return result; } -fs_initcall(thermal_init); + +core_initcall(thermal_init);