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); From patchwork Thu Oct 17 10:30:51 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Amit Kucheria X-Patchwork-Id: 176558 Delivered-To: patch@linaro.org Received: by 2002:a92:7e96:0:0:0:0:0 with SMTP id q22csp715319ill; Thu, 17 Oct 2019 03:31:09 -0700 (PDT) X-Google-Smtp-Source: APXvYqzRNGWJZ9/EfYyVsRiFhMVhk41nGmG7l6jkhfse/fezayOhHFEOuH9V+yNTfFBlKbvORu5U X-Received: by 2002:aa7:cf12:: with SMTP id a18mr2957138edy.278.1571308269755; Thu, 17 Oct 2019 03:31:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1571308269; cv=none; d=google.com; s=arc-20160816; b=TKFhGOBsOYeZZQ8lOKWV9wIj5LAtVfUUTahjR3GPF0NOFjRQYm9tM4fxYJow2H4bbr CqmePz1Q4dXhDOkPyGuLyZ2ROyJXD64G4xAXqE9m+K/Gfc0FskIBS5/73ufBXFke6fGA 7Z/P3ugjYDfXslnr/sJ9wmK7GqAnzyPBNH1KAcd2BUseh6vRV1h2ewOhPXf35fJ8fwUO xvXuhmlZsogIS0O6Wfuj0Gu5jZJMT5crpVUfbTrqPmhves96zkfiFQVvdhtPwW9lgKbW XSP2cvDFAa9a/v0LzMX2xwnmRF2o2nY8M5O8sdwZtX8q4o1K2Bv67hTHTb1V2PgTLW7Q P+Pg== 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=F14E7+MnIlpQiExL8cWFs9niwCwKQjYO3IRinn+L/UE=; b=kKi8k9ZYWkUX6NX9Wz8WTvreqnRj+rs/DKjn/iKh0FH5VCC9MMtYB2q8F7IsTOkpF3 E5WAlliA+Lx/2MUjcviqmR+L4sMx33yJADsSTEzZZZP8eXfMCLmgJ5Nms3VHJHy5ePzU s36pUifm2/tKY2BLXclc7zl1PaGJei9V7XpwxJ++ZdHhi3BUkmtBJYlQ24ce/HdZbmWw A+N+TRiGBGOuO32i9XhTVycv8v/nMyotn0eHwADHvGpOBGOG2C+WEc4asoHDMU8wjTvo 5CYHde/T6jXPc4ESQ9kk8weeP7F1NPOkpz63Pw9t6jEcrSL5oTE/wiwUBFycjuEjx2yT m8KQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=mJkfaeHT; 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 r5si1165979edo.14.2019.10.17.03.31.09; Thu, 17 Oct 2019 03:31:09 -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=mJkfaeHT; 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 S2408875AbfJQKbI (ORCPT + 15 others); Thu, 17 Oct 2019 06:31:08 -0400 Received: from mail-pl1-f195.google.com ([209.85.214.195]:33823 "EHLO mail-pl1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2408871AbfJQKbH (ORCPT ); Thu, 17 Oct 2019 06:31:07 -0400 Received: by mail-pl1-f195.google.com with SMTP id k7so935681pll.1 for ; Thu, 17 Oct 2019 03:31:07 -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=F14E7+MnIlpQiExL8cWFs9niwCwKQjYO3IRinn+L/UE=; b=mJkfaeHTf5SBolO1l341lKb2fM/RiZRWB6y8rVMAkkkS+3N2h6YC2xVz6Tm2TmGi+a SXHCEbQSnH8epN9/FUj9MslvLwHwqTbB7LeNYnG8jCOBESG4GHYnUBHT7N9vpHi+kXY/ sH7OmR9uZm1/erNfJi0NzI/usUghKUPxI+ngYZ5YA3aG7p1IpGa/Dl6uUaeP8gPWCFdw jZ/w3TB+FHwiiHELD1a6blOq5bkei/6E8xHgNmhdms7YlSLW1MibS/ABwGmTXTAJTKQP 9V1sbvG363bhskzlo8JPrnWuflf2+8vj5mZuCr9KRgmmTmcfRjb+zii8bAVSmo5Xpgnf y6aA== 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=F14E7+MnIlpQiExL8cWFs9niwCwKQjYO3IRinn+L/UE=; b=KnLQTFq9bvstcBiLJsUZVyc9yIGMAwefbkxQ5gx8eiklsHJ1BSZ0w4dBGS54zP74PD tUwZHqeGEWbszc3sJaYeLUifDPIrONIQKG1lDiYhN90AQilugiUpCVqLtiflsf9HSOau D0SqNX1dGr25AWRyazq11TqjEmR30MDZoi6KvsqiAZedUzcvMWVgJLuZ+J3TJoQE61pw zFYJIje5Z9hDeuB/o7uV1iOCk7/DsRFWu03gZa8dN6ejGXCQ0gjMvkytZChjlpLDq5Go PJhp7ITFSiHs9GrXUi9yFnGU/evnHsH8kWEWWl5pus7ceCS6amSOiv+r+bE6cS6TlYhb Fzjw== X-Gm-Message-State: APjAAAU5HZMmtfXGCX8UqSeEjs7WVRFbHhrDSE+S+QG8CFcymycw+hWj KSOhWig0jk0U3qjfvwf4K3gNoA== X-Received: by 2002:a17:902:fe86:: with SMTP id x6mr3301438plm.320.1571308266786; Thu, 17 Oct 2019 03:31:06 -0700 (PDT) Received: from localhost ([49.248.54.231]) by smtp.gmail.com with ESMTPSA id p11sm2133031pgs.51.2019.10.17.03.31.05 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 17 Oct 2019 03:31:06 -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 2/5] cpufreq: Initialise the governors in core_initcall Date: Thu, 17 Oct 2019 16:00:51 +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 Initialise the cpufreq governors earlier to allow for earlier performance control during the boot process. Signed-off-by: Amit Kucheria Acked-by: Viresh Kumar --- 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 +- 5 files changed, 5 insertions(+), 5 deletions(-) -- 2.17.1 diff --git a/drivers/cpufreq/cpufreq_conservative.c b/drivers/cpufreq/cpufreq_conservative.c index b66e81c06a57..737ff3b9c2c0 100644 --- a/drivers/cpufreq/cpufreq_conservative.c +++ b/drivers/cpufreq/cpufreq_conservative.c @@ -346,7 +346,7 @@ struct cpufreq_governor *cpufreq_default_governor(void) return CPU_FREQ_GOV_CONSERVATIVE; } -fs_initcall(cpufreq_gov_dbs_init); +core_initcall(cpufreq_gov_dbs_init); #else module_init(cpufreq_gov_dbs_init); #endif diff --git a/drivers/cpufreq/cpufreq_ondemand.c b/drivers/cpufreq/cpufreq_ondemand.c index dced033875bf..82a4d37ddecb 100644 --- a/drivers/cpufreq/cpufreq_ondemand.c +++ b/drivers/cpufreq/cpufreq_ondemand.c @@ -483,7 +483,7 @@ struct cpufreq_governor *cpufreq_default_governor(void) return CPU_FREQ_GOV_ONDEMAND; } -fs_initcall(cpufreq_gov_dbs_init); +core_initcall(cpufreq_gov_dbs_init); #else module_init(cpufreq_gov_dbs_init); #endif diff --git a/drivers/cpufreq/cpufreq_performance.c b/drivers/cpufreq/cpufreq_performance.c index aaa04dfcacd9..def9afe0f5b8 100644 --- a/drivers/cpufreq/cpufreq_performance.c +++ b/drivers/cpufreq/cpufreq_performance.c @@ -50,5 +50,5 @@ MODULE_AUTHOR("Dominik Brodowski "); MODULE_DESCRIPTION("CPUfreq policy governor 'performance'"); MODULE_LICENSE("GPL"); -fs_initcall(cpufreq_gov_performance_init); +core_initcall(cpufreq_gov_performance_init); module_exit(cpufreq_gov_performance_exit); diff --git a/drivers/cpufreq/cpufreq_powersave.c b/drivers/cpufreq/cpufreq_powersave.c index c143dc237d87..1ae66019eb83 100644 --- a/drivers/cpufreq/cpufreq_powersave.c +++ b/drivers/cpufreq/cpufreq_powersave.c @@ -43,7 +43,7 @@ struct cpufreq_governor *cpufreq_default_governor(void) return &cpufreq_gov_powersave; } -fs_initcall(cpufreq_gov_powersave_init); +core_initcall(cpufreq_gov_powersave_init); #else module_init(cpufreq_gov_powersave_init); #endif diff --git a/drivers/cpufreq/cpufreq_userspace.c b/drivers/cpufreq/cpufreq_userspace.c index cbd81c58cb8f..b43e7cd502c5 100644 --- a/drivers/cpufreq/cpufreq_userspace.c +++ b/drivers/cpufreq/cpufreq_userspace.c @@ -147,7 +147,7 @@ struct cpufreq_governor *cpufreq_default_governor(void) return &cpufreq_gov_userspace; } -fs_initcall(cpufreq_gov_userspace_init); +core_initcall(cpufreq_gov_userspace_init); #else module_init(cpufreq_gov_userspace_init); #endif From patchwork Thu Oct 17 10:30:53 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Amit Kucheria X-Patchwork-Id: 176560 Delivered-To: patch@linaro.org Received: by 2002:a92:7e96:0:0:0:0:0 with SMTP id q22csp715492ill; Thu, 17 Oct 2019 03:31:20 -0700 (PDT) X-Google-Smtp-Source: APXvYqyzKNwM6CPik3XF2jKqAQsdRFON7JDyO0q4j0AS/etd6jIS1qCefhCpOx9wLDrA/u78O0PG X-Received: by 2002:aa7:de12:: with SMTP id h18mr2900448edv.226.1571308280205; Thu, 17 Oct 2019 03:31:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1571308280; cv=none; d=google.com; s=arc-20160816; b=znmtC71i0Qzh1H8EPxbF9vY4jv2xmXrylRylUJBV9Yqz4/G2SEJg1ClTV3K546HzgX TRD1qDfFsGSk8m9QG1P2jGT3Ast/yHMs8x4DxZ4XXy2AHaDAbJUvVwMoDJfGjS2yhM3P KSZ8lDobUwDu3AR+e1KJIP3uxXZvhTiYO4zaxEypvgtLUiFTVbU9PCRVhsudiQF/A4Yw qbwiHhPWH32oa4+iYLgvIYswyRqdLK6gILPkOit/RLStw8ZnR7/7O9mWhN/mllLam011 OJwiBhxcrUPcSWSpL0RRrOnF7Ky2/DLZh2e09+xlW1LaicBjUDKD55x+qxF3cmmodow3 gJ+A== 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=yAYxsDoF1xODxjQtRc8reB4aVCGjGyEgdApmFBnl6Wc=; b=MewGpEZd43n89gRWr3T2dcHFsiYwEhAotVLK0drGk3eqGgAHAGsCJVXY+q0DysMLXl 7hMDtARQDyOJVLQt/ua7L2Nr434VU53YqF4qD5n+iIj9VO9Vg7/pNFsxO520tJE/hQ9V tqLram14Zgnz6uSTL9a1WVwrllWMtjPT8WzKjLpMRR1rWLYhx24ZyFVPfm1jDe/Hu0Ge H7vjolZBR9iLJlDQTzHqpdSZE2nKsEcwxJnbfh63uwomqoGCe7uUSQA665sYfKJQiMZL d9Hkk0sHufUxjIwV3rPzizs2zRUgYiTRurKj8h+yFF0OvswLogCHfqEs7fxEsQcXzRTB bMcw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=iC2Af2Y4; 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 g5si1066524ejp.430.2019.10.17.03.31.19; Thu, 17 Oct 2019 03:31:20 -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=iC2Af2Y4; 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 S2501994AbfJQKbQ (ORCPT + 15 others); Thu, 17 Oct 2019 06:31:16 -0400 Received: from mail-pl1-f194.google.com ([209.85.214.194]:33835 "EHLO mail-pl1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2501990AbfJQKbQ (ORCPT ); Thu, 17 Oct 2019 06:31:16 -0400 Received: by mail-pl1-f194.google.com with SMTP id k7so935849pll.1 for ; Thu, 17 Oct 2019 03:31:15 -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=yAYxsDoF1xODxjQtRc8reB4aVCGjGyEgdApmFBnl6Wc=; b=iC2Af2Y46Q48FdvGdaNCTJQWCORwnw78D049tRe8+wBCpljt9U7Qn95yg0fi6nJ24v HRH1hHOymiUJtnG/81nWV1WdomOj9Vb5eo+tknLXOXhbCPWwSJ1O85eOb6ZLWBfxZx73 nm6axiRp9TDykYVuVJT1+hVIe9CWVmg4T2pn7qlImdrTFS/00QfgYALSKkffpn3OebN4 lRBjq1HBr7CvUfdKaUTJnsEwJwCkZtDjPSpUt6I5Qclgo2OoGIEqD83dOUQDpiI2KEtm Gpo34FDCc4VGpwC73SzpFoFB3PgrToTo5wPbgo2tW7x4MD9ZE0RrD9GMRN+ad20Tg1gR sA5A== 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=yAYxsDoF1xODxjQtRc8reB4aVCGjGyEgdApmFBnl6Wc=; b=nNxWOWRnmEB1zkWB6UWaMZodxAiHsdQtQevxlVe4/9i4jExFLX9KkSm65uuC2RgdBl HzHsXPQL1mLMpU5EHI9SMRQXxkq2xK73fRk2WjeFCjjSCG4mGZlwrm6r/7jJoNkpZUyO p85bEB5L2aC5Rg9sZB3Vn8w7QUQqrVEbDK/D3uixmSPzeTkC8NCZeEo4Py9YlvyGKAuN RlpG31rt66Ntq2sWg0SxnwAed4jqY+347Mi6of61XpZflKc2PWwcUghMUI8LjZYgzY+w hcUEzhoOED9CKIEZq+lRij/Cq7XtEopfurGvd+Wv3vptr9ZJ7LtXfSioLPCv5QCx5gQl c5FQ== X-Gm-Message-State: APjAAAX9pb/CTDWaTncaWfS8Y8pYt0DVSsQVmdsM5FY6y5m7U9GxEU3R eWzRk9Pcs8UdO+QuLAKA6Fg2Ug== X-Received: by 2002:a17:902:222:: with SMTP id 31mr3300158plc.169.1571308274634; Thu, 17 Oct 2019 03:31:14 -0700 (PDT) Received: from localhost ([49.248.54.231]) by smtp.gmail.com with ESMTPSA id ep10sm14892051pjb.2.2019.10.17.03.31.13 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 17 Oct 2019 03:31:14 -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-clk@vger.kernel.org Subject: [PATCH v2 4/5] clk: qcom: Initialise clock drivers earlier Date: Thu, 17 Oct 2019 16:00:53 +0530 Message-Id: <5f1ca3bfc45e268f7f9f6e091ba13b8103fb4304.1571307382.git.amit.kucheria@linaro.org> 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 Initialise the clock drivers on sdm845 and qcs404 in core_initcall so we can have earlier access to cpufreq during booting. Signed-off-by: Amit Kucheria --- drivers/clk/qcom/clk-rpmh.c | 2 +- drivers/clk/qcom/gcc-qcs404.c | 2 +- drivers/clk/qcom/gcc-sdm845.c | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) -- 2.17.1 diff --git a/drivers/clk/qcom/clk-rpmh.c b/drivers/clk/qcom/clk-rpmh.c index 96a36f6ff667..20d4258f125b 100644 --- a/drivers/clk/qcom/clk-rpmh.c +++ b/drivers/clk/qcom/clk-rpmh.c @@ -487,7 +487,7 @@ static int __init clk_rpmh_init(void) { return platform_driver_register(&clk_rpmh_driver); } -subsys_initcall(clk_rpmh_init); +core_initcall(clk_rpmh_init); static void __exit clk_rpmh_exit(void) { diff --git a/drivers/clk/qcom/gcc-qcs404.c b/drivers/clk/qcom/gcc-qcs404.c index bd32212f37e6..9b0c4ce2ef4e 100644 --- a/drivers/clk/qcom/gcc-qcs404.c +++ b/drivers/clk/qcom/gcc-qcs404.c @@ -2855,7 +2855,7 @@ static int __init gcc_qcs404_init(void) { return platform_driver_register(&gcc_qcs404_driver); } -subsys_initcall(gcc_qcs404_init); +core_initcall(gcc_qcs404_init); static void __exit gcc_qcs404_exit(void) { diff --git a/drivers/clk/qcom/gcc-sdm845.c b/drivers/clk/qcom/gcc-sdm845.c index 95be125c3bdd..49dcff1af2db 100644 --- a/drivers/clk/qcom/gcc-sdm845.c +++ b/drivers/clk/qcom/gcc-sdm845.c @@ -3628,7 +3628,7 @@ static int __init gcc_sdm845_init(void) { return platform_driver_register(&gcc_sdm845_driver); } -subsys_initcall(gcc_sdm845_init); +core_initcall(gcc_sdm845_init); static void __exit gcc_sdm845_exit(void) {