diff options
author | Mel Gorman <mgorman@suse.de> | 2014-08-06 09:19:21 -0400 |
---|---|---|
committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2014-08-06 15:17:45 -0400 |
commit | 372ba8cb46b271a7662b92cbefedee56725f6bd0 (patch) | |
tree | 536013552cd845b4eb0559dc79c023ecc426c21e /include/linux | |
parent | 64b4ca5cb6e1a9f577588db5765dc996ddf595e1 (diff) |
cpuidle: menu: Lookup CPU runqueues less
The menu governer makes separate lookups of the CPU runqueue to get
load and number of IO waiters but it can be done with a single lookup.
Signed-off-by: Mel Gorman <mgorman@suse.de>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'include/linux')
-rw-r--r-- | include/linux/sched.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/include/linux/sched.h b/include/linux/sched.h index 306f4f0c987a..641bd954bb5d 100644 --- a/include/linux/sched.h +++ b/include/linux/sched.h | |||
@@ -168,8 +168,7 @@ extern int nr_processes(void); | |||
168 | extern unsigned long nr_running(void); | 168 | extern unsigned long nr_running(void); |
169 | extern unsigned long nr_iowait(void); | 169 | extern unsigned long nr_iowait(void); |
170 | extern unsigned long nr_iowait_cpu(int cpu); | 170 | extern unsigned long nr_iowait_cpu(int cpu); |
171 | extern unsigned long this_cpu_load(void); | 171 | extern void get_iowait_load(unsigned long *nr_waiters, unsigned long *load); |
172 | |||
173 | 172 | ||
174 | extern void calc_global_load(unsigned long ticks); | 173 | extern void calc_global_load(unsigned long ticks); |
175 | extern void update_cpu_load_nohz(void); | 174 | extern void update_cpu_load_nohz(void); |