sched/core: Rename schedutil_cpu_util() and allow rest of the kernel to use it
authorViresh Kumar <viresh.kumar@linaro.org>
Tue, 8 Dec 2020 04:16:56 +0000 (09:46 +0530)
committerPeter Zijlstra <peterz@infradead.org>
Thu, 14 Jan 2021 10:20:09 +0000 (11:20 +0100)
commita5418be9dffe70ccbb0b4bd5ea3881c81927e965
treee78f950d1d4196ee0cf32451f27216f7e01a581c
parent7d6a905f3dd62c4502cdd772c71319de4058ec89
sched/core: Rename schedutil_cpu_util() and allow rest of the kernel to use it

There is nothing schedutil specific in schedutil_cpu_util(), rename it
to effective_cpu_util(). Also create and expose another wrapper
sched_cpu_util() which can be used by other parts of the kernel, like
thermal core (that will be done in a later commit).

Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Acked-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Link: https://lkml.kernel.org/r/db011961fb3bb8bef1c0eda5cd64564637d3ef31.1607400596.git.viresh.kumar@linaro.org
include/linux/sched.h
kernel/sched/core.c
kernel/sched/cpufreq_schedutil.c
kernel/sched/fair.c
kernel/sched/sched.h