From patchwork Mon Oct 21 12:15:12 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Amit Kucheria X-Patchwork-Id: 177071 Delivered-To: patch@linaro.org Received: by 2002:a92:409a:0:0:0:0:0 with SMTP id d26csp3336572ill; Mon, 21 Oct 2019 05:15:39 -0700 (PDT) X-Google-Smtp-Source: APXvYqwOleOeOY2JhRnsg7Z9uAW3vmKVjqoUpSkSWEUk/cBttBPt9KyJkQKjN4oHgG0Hi8+7Ny+O X-Received: by 2002:a05:6402:1514:: with SMTP id f20mr24933868edw.35.1571660139792; Mon, 21 Oct 2019 05:15:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1571660139; cv=none; d=google.com; s=arc-20160816; b=zGzA0sFEyn+fgly/XI5/9pzI1wBcybGk3h9do4akZTmERznAhSQ4odxBeerRrS5fU9 6EXvQScN2eKKer8AQLe0cvm2/4nwasao4oYzFqFSJnLtVhoE3OYwavY7x4+SWg/vzeid 2okgKBcyl1H0vVSMUMFiUsmWrg/YXDb9OxPM3/mPS+DnvMEQw4aj3SCuWBo32Q2JmvrV kQHqjD6dEaLkj/GM7HJcPft6su1o4+UBKFWE2uRfplMKWl3yS6gQ54bNKQVMy+zIuZqT iLHoTrR15qYlmWiJliXves0gh9hhQ9c7PeaCwJGWX6SoDMXikakrKOidz0LZHtZwFTa4 DvcQ== 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=icSR5Ia8C4BY/f3U2+rIIkMs08i+QoePFXJHRUnWtH8=; b=WQNl6NpsK3MDzDT3G+EjyexjgJAanvqg/mAK/hdzj8gi2ZLenwmB4s1e/2LchsE1Ct lwZguiPsEv9KT/utOE8YE34/lcYoRcY2ljf+LJUr195wfpVerPwbQhd3bzqZoV73AEWr 2kH9Zytv7NBRmyDnmuFj5pzekwCTZAqI46ts3Q6moHb+LzmfGwWz7ZDW0kQxAt3sz595 oMQqfhqfzVE8ogjidrGmB2uQM5CwHeubPPqQ7TjjPUz89wFwWkmUWim0W32rVIgUrikc eSgYYNy3TTruWthdd8rBuQaDcSXRijNlUDUmsrW2u1D6L32l4RdmjwZV5gUI0XzKNwTg 9bow== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=qtBCgbp8; 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 p1si9643935eda.406.2019.10.21.05.15.39; Mon, 21 Oct 2019 05:15:39 -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=qtBCgbp8; 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 S1728679AbfJUMPf (ORCPT + 26 others); Mon, 21 Oct 2019 08:15:35 -0400 Received: from mail-pf1-f195.google.com ([209.85.210.195]:35443 "EHLO mail-pf1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728667AbfJUMPd (ORCPT ); Mon, 21 Oct 2019 08:15:33 -0400 Received: by mail-pf1-f195.google.com with SMTP id 205so8333671pfw.2 for ; Mon, 21 Oct 2019 05:15:33 -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=icSR5Ia8C4BY/f3U2+rIIkMs08i+QoePFXJHRUnWtH8=; b=qtBCgbp8DNzK+gpDpDW9X0cKqML0CGpQ4bSaNLGj9blAogVaQgmb2yQnayWfotrEgk Hlc1OI63l4JGYvX7jtcnuCj3DH6pgDy23RyzWkkuP/PWlsr2Cz0JL3+kU7fv2uG7B13e nPjC/6+HjZG9rrmcscVM/Udu9PEnbsZDZZv8aVVa2r37J9nc7UFccEGrzAfNlW39YJMQ bUvvmyo7//WvL1uRJD1bndSuSMFwKB5OAXW6UVaK4pekYbfRqB1qHY3RGbZ1mbD1+1Vv xwuc1N44r/BkKmnjlYLkocFFiZ68VG2wVutkt4L3pQfvOkWatXanfxAKDsBr4RGdpAzt +XHA== 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=icSR5Ia8C4BY/f3U2+rIIkMs08i+QoePFXJHRUnWtH8=; b=Y0IIWpjvKVkm86/gwotbNSkGdSY1TrUyRMfS22hTaeap3s7jBucTMHgFwtyibeXsAq vFu/Aezei+LW/ZG19LGbar5YSHTGNwgvX9Sukeddh1oLcVJ09nkAIqh2GTFzCBSKjP9U HdLsiaIvousAszdZSBNP+MYJtk8Q33wh5Mk9GhZMiwuGyViwttLBQ5+xT0/St+P6JJ84 fAdkpCDrvOiBbhUFFgVY6GgVKofVrvzgvQgjgl+GdsFViBTWIGk2Z1+jo/cwD8M1CjSI 244xyYymU8jcIDpmUe2gR/dxdfhhji+sTWrBMt0uFyhhxy7L96zhr/KipKH7IyenYijC 8tUw== X-Gm-Message-State: APjAAAWnjxfmJrWX3yLSGz7h5eTHevnExydUGic2jQB2VrVvUlNbUYfP x2ZSNaB7npkNevR1PnoQMu8TNzcKytH0PQ== X-Received: by 2002:a17:90a:b292:: with SMTP id c18mr28713603pjr.4.1571660132274; Mon, 21 Oct 2019 05:15:32 -0700 (PDT) Received: from localhost ([49.248.62.222]) by smtp.gmail.com with ESMTPSA id r23sm15004545pgk.46.2019.10.21.05.15.31 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 21 Oct 2019 05:15:31 -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 3/6] cpufreq: Initialize the governors in core_initcall Date: Mon, 21 Oct 2019 17:45:12 +0530 Message-Id: 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 Initialize the cpufreq governors earlier to allow for earlier performance control during the boot process. Signed-off-by: Amit Kucheria Acked-by: Viresh Kumar Reviewed-by: Rafael J. Wysocki --- 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 +- kernel/sched/cpufreq_schedutil.c | 2 +- 6 files changed, 6 insertions(+), 6 deletions(-) -- 2.17.1 diff --git a/drivers/cpufreq/cpufreq_conservative.c b/drivers/cpufreq/cpufreq_conservative.c index b66e81c06a575..737ff3b9c2c09 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 dced033875bf8..82a4d37ddecb3 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 aaa04dfcacd9d..def9afe0f5b86 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 c143dc237d878..1ae66019eb835 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 cbd81c58cb8f0..b43e7cd502c58 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 diff --git a/kernel/sched/cpufreq_schedutil.c b/kernel/sched/cpufreq_schedutil.c index 86800b4d5453f..322ca8860f548 100644 --- a/kernel/sched/cpufreq_schedutil.c +++ b/kernel/sched/cpufreq_schedutil.c @@ -915,7 +915,7 @@ static int __init sugov_register(void) { return cpufreq_register_governor(&schedutil_gov); } -fs_initcall(sugov_register); +core_initcall(sugov_register); #ifdef CONFIG_ENERGY_MODEL extern bool sched_energy_update; From patchwork Mon Oct 21 12:15:14 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Amit Kucheria X-Patchwork-Id: 177073 Delivered-To: patch@linaro.org Received: by 2002:a92:409a:0:0:0:0:0 with SMTP id d26csp3336685ill; Mon, 21 Oct 2019 05:15:46 -0700 (PDT) X-Google-Smtp-Source: APXvYqwu81P4D7acd9YXV4oTLgiHpigNcvOJKPFMyhuAQTmhgGQWIusIoW2edLN1CWsRtPq/0jZs X-Received: by 2002:aa7:c44e:: with SMTP id n14mr11515396edr.162.1571660146775; Mon, 21 Oct 2019 05:15:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1571660146; cv=none; d=google.com; s=arc-20160816; b=va2nTHiABb995A+Oi1Xdwq5/xOTxSLcbbO36FMshe81HM5DPyindU+L8Yfrasd51CC QhUwGUuhh/9VcXO5wnH2ulL74TznnxCbOQIiAqThQ8D7973h9Oyk8b014zS17fR/r1LW Yn6lAPt7ELyUGTg68hcDKZFcoGtTulAJXuex9/ZyayKvD+N+8QWK7jGb0VRw7T9fDZ80 qXP90Ga+H8YBn0twNiMwUtW/NTvUWFYVvJMHrNdYmTUzMGjgZ9XkddBQUuOVbRCzfa+t W/Sf8DHtSrDDF+HT4rMwJj5CNdrvAACY0Ave3KlVmoN325+nEIvxV5MCmM86vanw0VVa mRPQ== 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=FyfRV5Js9+leUaktEVHjzJNcbnyCVZmNmn0rQoEZsq8=; b=RrjiVoUNRjHFUr+25o/BuN8gDgi+uNqh9HYXA1RpucKFLYoMa2somE+Me4QqViWfk8 TJKnU1/de3gB6fe2XUvoeJwNLUS58HlUjtIE69c1ZBw9xUD27USwSwicHlGpmI98fYmn PLvv3KuPSnylbWLObhsbOJMICoVLG4veA80E1A7MCOF6CXyGaocXh/GLWhajyt0hWRzE fEEGnLBFI2tPa531hnKoxX1W8r3fz0EuLKNFQOoyHqaSe/M69+6Qfb+iZcTLwpsXjm2f g594yq3nD8Z/TrADantYrnO0TOLkXIxUoTbc+sf+9prXpI3zonSK3N/o+l5WgHl6R4y2 1Seg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=sS7o7iqs; 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 d35si9431882ede.440.2019.10.21.05.15.46; Mon, 21 Oct 2019 05:15:46 -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=sS7o7iqs; 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 S1728709AbfJUMPm (ORCPT + 26 others); Mon, 21 Oct 2019 08:15:42 -0400 Received: from mail-pf1-f194.google.com ([209.85.210.194]:33383 "EHLO mail-pf1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728667AbfJUMPl (ORCPT ); Mon, 21 Oct 2019 08:15:41 -0400 Received: by mail-pf1-f194.google.com with SMTP id q10so8352820pfl.0 for ; Mon, 21 Oct 2019 05:15:40 -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=FyfRV5Js9+leUaktEVHjzJNcbnyCVZmNmn0rQoEZsq8=; b=sS7o7iqs+RScyt6BaNZLIHcYIvEhJBzm7BJzVTX38JcWinbzToZ3aJ5g9oqzVF6+LA pQKXXkGuulQiZqNUINoLALWG17assWoUELh6fWzIh/rgY8oufCDbqAqSPPFYuaMrRoCJ zMf8Rf2YFIkiY3PAL4K1+UaQ1lOxuO39kCeF6/eV9yyNt1zvc+ElEWiQT9jhtWtWm8+f ittQeVB8GHx5bZtd372Di6jzjY/sBJQB5v1gBtU8T0phCcDpGFasEJ7mtIjf33oQV84m ijB5jkjTmzw4ey3nhVsYg200l/pNeOnk9DIUPSf2yrkqE4Nn1EXptze6w7LvBo1+xQPc frow== 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=FyfRV5Js9+leUaktEVHjzJNcbnyCVZmNmn0rQoEZsq8=; b=qjY64gHp1IWtl1RAHdxqwiznTZDiIXlyJyhMLh0mAD052ToQMa4vIeP0VTKTBTw4fz 15utMc4rvhZ39zKa3pIuWkZLGP5EaYxS6WWn/EIxLwYM5t5PQZtLLLj5Y4TsRgcxyaRc yU28H5YJlWVYeFmTyfKpcorO4g1nyvYdMYyKuQm/kVYAeCRoi3/2UMstgW+Zl6bB3pjq DW8c2sroPYj88+O9+7m8UaO6g9oVnontk0OdVG6Ka4yUo4BPAGld6JHMvYHfmom37V/k XbqzKhMVAEbGwvDhGpdWM/o2ptProVlhjVQUGrQu7/RqjRpz9FO1BiPnM1OUk6j/nydn ot8w== X-Gm-Message-State: APjAAAUSLfu3A6TRdew5I99mTRqKGP+GGJ4OfYbhKOtFQLmHrWRGN8m+ QXPjtGbuI6kQkVQNhdhRnF/dygsjzeLhHQ== X-Received: by 2002:a65:68c3:: with SMTP id k3mr5280332pgt.247.1571660139404; Mon, 21 Oct 2019 05:15:39 -0700 (PDT) Received: from localhost ([49.248.62.222]) by smtp.gmail.com with ESMTPSA id 127sm15132523pfy.56.2019.10.21.05.15.38 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 21 Oct 2019 05:15:38 -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-clk@vger.kernel.org Subject: [PATCH v5 5/6] clk: qcom: Initialize clock drivers earlier Date: Mon, 21 Oct 2019 17:45:14 +0530 Message-Id: <75ae9c3a1c0e69b95818c6ffe7181fdeaaf2d70e.1571656015.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 Initialize 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 Acked-by: Stephen Boyd Acked-by: Viresh Kumar --- 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 96a36f6ff667d..20d4258f125b9 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 bd32212f37e64..9b0c4ce2ef4ec 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 95be125c3bddf..49dcff1af2db1 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) { From patchwork Mon Oct 21 12:15:15 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Amit Kucheria X-Patchwork-Id: 177074 Delivered-To: patch@linaro.org Received: by 2002:a92:409a:0:0:0:0:0 with SMTP id d26csp3336730ill; Mon, 21 Oct 2019 05:15:49 -0700 (PDT) X-Google-Smtp-Source: APXvYqwfIxwhZE4EiVE8Qnqvr/TbBLabWpibW7EJxqyYtVJ3DiTQG3Jlq/+wrLaiA5DanDg5O5kJ X-Received: by 2002:a50:99d9:: with SMTP id n25mr8226544edb.263.1571660149467; Mon, 21 Oct 2019 05:15:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1571660149; cv=none; d=google.com; s=arc-20160816; b=QMzCSHyYz+g5bzAw8QKDquOBI1paE38V/gBWAwPWqsORTZDw8MrpAE7YL/sN3ufeZ1 KF7V43jhNptBEFoMUZ0r++HvmhuGZdTbo6ceqpNznzukhcjOfL4CmwlnFcX96rcgANjG HQqzWuAy9QDlSdy5bCDhWETsgr8iIlfReGeJP88PIS2w2bKM72+AwC8GbFKZdoCBssIu nTbZStIWPJZUfyIdJNJOUcMCycPcYesmnpH48XnRWwMY0nudkHt9yIpP6Ny1V02euCFj x5nA6cogQdPsjw0WYF9CQr/KmhCH+zELwQ9HbsKjgQBjaCryDH4/rjt2mgv5RjTr2R3e LKfA== 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=Cukx8ujHc8MZYDdytnpBWfM0F4aiiT0HrshMHuyoYiA=; b=o/XXtkygNrouoW0LOXnGmS8D61sz2LS6gY35POt04wzqLBf+tO/3fitJVC90tfpn7s 7s1TwyqAYc9WSau5qX9lwi580rQH69tVjVzI3Cq/h8eRYOytPtwY1zPYHmjTUGalSmXJ q2OSC929pVkrExpi4IE6ejBArWxMluIv9uxVfQ24D9sCzCiZNpx6tv/nC7vmNkqzOM76 Ryo0ffWpPRmwuLgmOf467mQj4UEBZegnRLnaSlhD4U9gkrVQJofVSLCwFZAjEWXkqtso Rs0hBNayXRau1Iu3V7Pcw9aAFyisK1Oi8XgUFNPf/PnNlaANmgaI+jDAOlPF3MUQ1Aaz AHbQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=EW5sDR0B; 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 l22si8322486ejr.149.2019.10.21.05.15.48; Mon, 21 Oct 2019 05:15:49 -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=EW5sDR0B; 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 S1728725AbfJUMPq (ORCPT + 26 others); Mon, 21 Oct 2019 08:15:46 -0400 Received: from mail-pl1-f194.google.com ([209.85.214.194]:39773 "EHLO mail-pl1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728713AbfJUMPo (ORCPT ); Mon, 21 Oct 2019 08:15:44 -0400 Received: by mail-pl1-f194.google.com with SMTP id s17so6532792plp.6 for ; Mon, 21 Oct 2019 05:15:43 -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=Cukx8ujHc8MZYDdytnpBWfM0F4aiiT0HrshMHuyoYiA=; b=EW5sDR0BhvXc5p2C2yYb6Ly5+xBcSNYaYAMkfBRcHMvST6fBuTLsWUipr6L1RkaRHR EyQ/H1mFn/ZhFeoaHosy+oDTjscGr13sRayWyNPEf5vnw4QJRA35GkR84gG6DyvZc416 VTWlu1owMddSIyvuBExTYfiRkBmm8T0iC4NPVX9FXIOxND35hCBjW51j8vY+xqn4Ztmx Vfl39SaOokAvpylKjusmOdhXZOyMu+1qRqwkgdcNrcewQot7pzpdBskEGhj6Ri86OLDh lrDsx8HLSHqVT07Ud81PSb2H10wWUkVZ/day47X+8dGQjogXPa1x617kWPv/z6Pw8KCl DKFA== 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=Cukx8ujHc8MZYDdytnpBWfM0F4aiiT0HrshMHuyoYiA=; b=qTWEpWWBn3CXq+pOQ5FfgvAyJtyZKErbQYF48iVi8IS9LMWDfO3jU6BpdmaWuJdnbp xRtEddiA6S5hRmlnf9LutR8Tpd9K2dMLo8H+kqvueSLdRizxV0MVYqKueAFXB54OAiPa rjf5y16IhszSa7xmG5SfxMWZAkUnaANPUejbmM+JGOV8yfsD7UsmUOeVUWkSHkUoEaHj /6VtdZNFSUckPQRXvjUERY32bXomSiaeqQIxQD7l0Bs8s/6zsb1u7rcx9+EtDrfXGA9W 4iL9Jn0cqiF7QXIWm+PAls98WpFeM2+tw9jQh/Cq42yYBlFONpaKvggdn8Z9DuXQpHpC vpHA== X-Gm-Message-State: APjAAAVWHjTSggvA/00AlpTEkcNUtGjf/3olwVxdPsycxux54euzk+Zs PmtlWZlGPID1EJ9NMr0mR6lx5nfNtTeVxw== X-Received: by 2002:a17:902:fe8c:: with SMTP id x12mr14860552plm.55.1571660142988; Mon, 21 Oct 2019 05:15:42 -0700 (PDT) Received: from localhost ([49.248.62.222]) by smtp.gmail.com with ESMTPSA id e9sm12976482pgs.86.2019.10.21.05.15.42 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 21 Oct 2019 05:15:42 -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 6/6] cpufreq: qcom-hw: Move driver initialization earlier Date: Mon, 21 Oct 2019 17:45:15 +0530 Message-Id: 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 Allow qcom-hw driver to initialize right after the cpufreq and thermal subsystems are initialised in core_initcall so we get earlier access to thermal mitigation. Signed-off-by: Amit Kucheria Acked-by: Daniel Lezcano Acked-by: Taniya Das Acked-by: Viresh Kumar --- drivers/cpufreq/qcom-cpufreq-hw.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.17.1 diff --git a/drivers/cpufreq/qcom-cpufreq-hw.c b/drivers/cpufreq/qcom-cpufreq-hw.c index a9ae2f84a4efc..fc92a8842e252 100644 --- a/drivers/cpufreq/qcom-cpufreq-hw.c +++ b/drivers/cpufreq/qcom-cpufreq-hw.c @@ -334,7 +334,7 @@ static int __init qcom_cpufreq_hw_init(void) { return platform_driver_register(&qcom_cpufreq_hw_driver); } -device_initcall(qcom_cpufreq_hw_init); +postcore_initcall(qcom_cpufreq_hw_init); static void __exit qcom_cpufreq_hw_exit(void) {