cpuidle: make cpuidle_curr_driver static
authorLen Brown <len.brown@intel.com>
Sat, 22 May 2010 20:57:26 +0000 (16:57 -0400)
committerLen Brown <len.brown@intel.com>
Fri, 28 May 2010 01:06:58 +0000 (21:06 -0400)
commit752138df0dc2daaae09379c754caeb08c97905dc
tree4908627df11ccb42570fc3525c560f89c444781c
parentc0d64cb031c21f163a0ec15cf10844bcf0ceedcf
cpuidle: make cpuidle_curr_driver static

cpuidle_register_driver() sets cpuidle_curr_driver
cpuidle_unregister_driver() clears cpuidle_curr_driver

We should't expose cpuidle_curr_driver to
potential modification except via these interfaces.
So make it static and create cpuidle_get_driver() to observe it.

Signed-off-by: Len Brown <len.brown@intel.com>
drivers/cpuidle/cpuidle.c
drivers/cpuidle/cpuidle.h
drivers/cpuidle/driver.c
drivers/cpuidle/sysfs.c
include/linux/cpuidle.h