]> git.baikalelectronics.ru Git - kernel.git/commit
cpuidle: use the driver's state_count as default
authorDaniel Lezcano <daniel.lezcano@linaro.org>
Mon, 26 Mar 2012 12:51:26 +0000 (14:51 +0200)
committerLen Brown <len.brown@intel.com>
Fri, 30 Mar 2012 05:55:04 +0000 (01:55 -0400)
commit4e4d8312757499c37789d37a8702e20965792435
tree3f413ea8c13cc12f7f6af16bc198a17914695f1b
parent33a4edea1d5642753847096ee3255e2206956ed7
cpuidle: use the driver's state_count as default

If the state_count is not initialized for the device use
the driver's state count as the default. That will prevent
to add it manually in the cpuidle driver initialization
routine and will save us from duplicate line of code.

Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
Signed-off-by: Len Brown <len.brown@intel.com>
drivers/cpuidle/cpuidle.c
drivers/cpuidle/driver.c