cpuidle: menu: Lookup CPU runqueues less
authorMel Gorman <mgorman@suse.de>
Wed, 6 Aug 2014 13:19:21 +0000 (14:19 +0100)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Wed, 6 Aug 2014 19:17:45 +0000 (21:17 +0200)
commit372ba8cb46b271a7662b92cbefedee56725f6bd0
tree536013552cd845b4eb0559dc79c023ecc426c21e
parent64b4ca5cb6e1a9f577588db5765dc996ddf595e1
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>
drivers/cpuidle/governors/menu.c
include/linux/sched.h
kernel/sched/core.c
kernel/sched/proc.c