From patchwork Thu Oct 17 10:30:50 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Amit Kucheria X-Patchwork-Id: 176557 Delivered-To: patch@linaro.org Received: by 2002:a92:7e96:0:0:0:0:0 with SMTP id q22csp715261ill; Thu, 17 Oct 2019 03:31:05 -0700 (PDT) X-Google-Smtp-Source: APXvYqw2BrEXo8Onwg0hQMNRkO99KlaiVNaWnPFKJOwfIE4QEuMaxtVIfeKwmNjnZHU54t8wxadT X-Received: by 2002:a05:6402:6c6:: with SMTP id n6mr2957190edy.292.1571308265718; Thu, 17 Oct 2019 03:31:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1571308265; cv=none; d=google.com; s=arc-20160816; b=RNhTG2PO2G7mwFg6reYsVbZ/002iYnStp/62FdI/AzOfLiCpFqlVXwFCQagYNSJWc0 eKAsBF7mVq+v/cxnvwEzcVkVg50A9pWMOW9e+T/2EerkJMExq2qR3VKluHTiVxG65MP/ WgnIaMK5xZ8q3XyMWKcfgVXhlYNAOGRcRKuYUM+nlO80h+4dqjeKbjRZX/IWD4NZMlRn oMeU0X56TqcLEftGxYVZs/52pjFW3TUvoksOzY78Rm1l0YdUuLkGxXfO7n3mITyETLrI P6nqmPXZhQZ44ZF480eyeDples+8byThPH4zA3IofwZEnkB5g5+5N+ioZgdPfRjMpi3v zIOQ== 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=J2+dIH77bj5pUXUsovECtUNC+eDZQzRNadhd1RCEVqs=; b=PScLdW2WRSIjNXhIdi9HLyP2ZOM/705lWuniSpR6xJl2ey6o63qTN6Nsef6arcFM2E zdlc2SzDMJaDhcBuCU7c7i+wTLncjMhykrKHqCW5r0z/bDWha8XEA1xfgBghSHO827Ap nGDS3KeEcAVqL6ycAxEbrgOrVUGMLfKmaN+Av9uKgR86hTSiXHReEWz8+QHTYqsuOwnU IRnq2Mz7p37P6XTigE4HjWz9qpKzotk6+TWW861KR52olvcg+GNEpwUZdDgTVZCenwww QlHoPXOgWnQl+K8b5VNN7V/BmKO64hEAO77ZMAHEmadG5N1NlyMfs9ffy1Ed/wjdp6XW h6vw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=QyCYbcfV; 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 g90si1293921edd.329.2019.10.17.03.31.05; Thu, 17 Oct 2019 03:31:05 -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=QyCYbcfV; 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 S2408872AbfJQKbE (ORCPT + 15 others); Thu, 17 Oct 2019 06:31:04 -0400 Received: from mail-pl1-f196.google.com ([209.85.214.196]:34905 "EHLO mail-pl1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2408806AbfJQKbD (ORCPT ); Thu, 17 Oct 2019 06:31:03 -0400 Received: by mail-pl1-f196.google.com with SMTP id c3so934224plo.2 for ; Thu, 17 Oct 2019 03:31:03 -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=QyCYbcfV/to97a+xYWNSXEdx2HU7uHt04NRbH5yfS2adyMH25lzSgFB9Ep8/KbqTs6 Zf6HjbvRACc7tNrYuU7r6di3rZe8GmE3IA8S8ZiIxJ6KPj5o2rGokTTpZnoQ4LfuZw7x ZhxTDPIbjS/TIAPNiC+bZF+F+NfbMS9bvW2uIFHvA9oXuNOsRxBQBd54vrXbno3eLb2k gktYoUlsnie81rVAljMFA8VOZ1a1P8Y5Sc3HVHP6PBJQoGnESySHtq427OUVSZrgLW0h HErNTlmrHH7o1G4KT9XRcsqVDXMNtk24QM8VB0d2CfPbRwi/qrgH/OfPAQJ4MWED3tBl 0IDw== 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=envF9u9SpF2XOCCAVev1o0c6/45PrJaNVaMSnukKqs99wPcVbU9aiEMnYd8+68FGSF Y9g9GeATId9LWeJlyadGVxp242/CEo+ch0dC8Nglez6qVu6cuK6wjFVFomkzffYdIKFK OyNZLKkDQ4Eh4JHOQ/pnpSsyKThz6ZyZnLpkuFh+nt7QV9BeHCYOeCAP2r1xAfffCUMq FnAhur0pOLcL6+bRNpqo41ngYie5PncYm4pYyU181JilDi+qH17aq7knwaSM5hgYSTnP DzEPPQe3mmgv+Y6BmhnUCVHUWdVg83ifaltfgH1zmAsBpEF8v/IK/qRPNG/Z4QLMKZmW wacw== X-Gm-Message-State: APjAAAXmWxYN+HtLmPcdpXdoODTbGgi4tyiMCZ1Wsjd/z3kb+qFQzOuQ UoKL8xnbhq23qgl50Xy2PaUKQg== X-Received: by 2002:a17:902:56e:: with SMTP id 101mr3180603plf.90.1571308262888; Thu, 17 Oct 2019 03:31:02 -0700 (PDT) Received: from localhost ([49.248.54.231]) by smtp.gmail.com with ESMTPSA id w12sm3285919pfq.138.2019.10.17.03.31.01 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 17 Oct 2019 03:31:02 -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 v2 1/5] thermal: Initialize thermal subsystem earlier Date: Thu, 17 Oct 2019 16:00:50 +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 --- drivers/thermal/thermal_core.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) -- 2.17.1 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);