cpufreq: Move scheduler-related code to the sched directory
authorRafael J. Wysocki <rafael.j.wysocki@intel.com>
Thu, 10 Mar 2016 19:44:47 +0000 (20:44 +0100)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Thu, 10 Mar 2016 19:44:47 +0000 (20:44 +0100)
commitadaf9fcd136970e480d7ca834c0cf25ce922ea74
tree36183592da27e413b79f60705132ed84dd34006e
parent08f511fd41c3afe303eb9b41bff0570f7c1b6937
cpufreq: Move scheduler-related code to the sched directory

Create cpufreq.c under kernel/sched/ and move the cpufreq code
related to the scheduler to that file and to sched.h.

Redefine cpufreq_update_util() as a static inline function to avoid
function calls at its call sites in the scheduler code (as suggested
by Peter Zijlstra).

Also move the definition of struct update_util_data and declaration
of cpufreq_set_update_util_data() from include/linux/cpufreq.h to
include/linux/sched.h.

Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Acked-by: Peter Zijlstra (Intel) <peterz@infradead.org>
drivers/cpufreq/cpufreq.c
drivers/cpufreq/cpufreq_governor.c
include/linux/cpufreq.h
include/linux/sched.h
kernel/sched/Makefile
kernel/sched/cpufreq.c [new file with mode: 0644]
kernel/sched/sched.h
This page took 0.027286 seconds and 5 git commands to generate.