From d498075b655eb8e59833e22130daa77e19f30e5f Mon Sep 17 00:00:00 2001 From: Quentin Perret Date: Fri, 22 Jan 2021 10:42:02 +0000 Subject: [PATCH] ANDROID: sched: time: Export symbols needed for schedutil module Export symbols needed to allow building a schedutil-based vendor module with GKI. This is a small price to pay to give vendors the flexibility they need, and avoids littering cpufreq_schedutil.c with many vendor hooks. Bug: 170511085 Signed-off-by: Quentin Perret Change-Id: I8ff8bdb32df5d47124236819efba881c1a2a538d (cherry picked from commit 34cd6916744b8b2d2107d2d5f10cbacb181e4f6c) (cherry picked from commit 7587bc9dcf5a0710e7a3b662f763a1028687dfab) Signed-off-by: Palmer Dabbelt --- kernel/sched/cpufreq.c | 1 + kernel/time/tick-sched.c | 1 + 2 files changed, 2 insertions(+) diff --git a/kernel/sched/cpufreq.c b/kernel/sched/cpufreq.c index 7c2fe50fd76d..3d5f5a80b401 100644 --- a/kernel/sched/cpufreq.c +++ b/kernel/sched/cpufreq.c @@ -75,3 +75,4 @@ bool cpufreq_this_cpu_can_update(struct cpufreq_policy *policy) (policy->dvfs_possible_from_any_cpu && rcu_dereference_sched(*this_cpu_ptr(&cpufreq_update_util_data))); } +EXPORT_SYMBOL_GPL(cpufreq_this_cpu_can_update); diff --git a/kernel/time/tick-sched.c b/kernel/time/tick-sched.c index 9542f0fbc300..9895cee4f797 100644 --- a/kernel/time/tick-sched.c +++ b/kernel/time/tick-sched.c @@ -1127,6 +1127,7 @@ unsigned long tick_nohz_get_idle_calls_cpu(int cpu) return ts->idle_calls; } +EXPORT_SYMBOL_GPL(tick_nohz_get_idle_calls_cpu); /** * tick_nohz_get_idle_calls - return the current idle calls counter value