From mboxrd@z Thu Jan 1 00:00:00 1970 From: Matthias Kaehlcke Subject: [PATCH v3 08/12] cpufreq: Add stub for cpufreq_update_policy() Date: Thu, 14 Jun 2018 12:47:08 -0700 Message-ID: <20180614194712.102134-9-mka@chromium.org> References: <20180614194712.102134-1-mka@chromium.org> Return-path: In-Reply-To: <20180614194712.102134-1-mka@chromium.org> Sender: linux-kernel-owner@vger.kernel.org To: MyungJoo Ham Cc: Kyungmin Park , Chanwoo Choi , Arnd Bergmann , Greg Kroah-Hartman , Rob Herring , Mark Rutland , linux-pm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Brian Norris , Douglas Anderson , Enric Balletbo i Serra , "Rafael J . Wysocki" , Viresh Kumar , Lee Jones , Matthias Kaehlcke List-Id: devicetree@vger.kernel.org cpufreq stubs out some functions when CONFIG_CPU_FREQ=n , but cpufreq_update_policy() is not among them. The throttler driver (https://patchwork.kernel.org/patch/10453351/) uses cpufreq as one possible throttling mechanism, but it can still be useful without cpufreq. Stubbing out cpufreq_update_policy() allows the throttler driver to be built without ugly #ifdef'ery when cpufreq is disabled. Signed-off-by: Matthias Kaehlcke --- Changes in v3: - patch added to series include/linux/cpufreq.h | 1 + 1 file changed, 1 insertion(+) diff --git a/include/linux/cpufreq.h b/include/linux/cpufreq.h index 882a9b9e34bc..dba8c4951e2e 100644 --- a/include/linux/cpufreq.h +++ b/include/linux/cpufreq.h @@ -210,6 +210,7 @@ static inline unsigned int cpufreq_quick_get_max(unsigned int cpu) return 0; } static inline void disable_cpufreq(void) { } +static inline void cpufreq_update_policy(unsigned int cpu) { } #endif #ifdef CONFIG_CPU_FREQ_STAT -- 2.18.0.rc1.242.g61856ae69a-goog