cpuidle: move driver's refcount to cpuidle
authorDaniel Lezcano <daniel.lezcano@linaro.org>
Wed, 31 Oct 2012 16:44:45 +0000 (16:44 +0000)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Wed, 14 Nov 2012 23:34:22 +0000 (00:34 +0100)
commit42f67f2acab2b7179c0d1ab234869e391448dfa6
tree2ae9b604adea21b4047228763b77307c50f2574b
parent8f3e9953e1e4ae5c11e2e880e7d85c03c0180613
cpuidle: move driver's refcount to cpuidle

We want to support different cpuidle drivers co-existing together.
In this case we should move the refcount to the cpuidle_driver
structure to handle several drivers at a time.

Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
Acked-by: Peter De Schrijver <pdeschrijver@nvidia.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/cpuidle/driver.c
include/linux/cpuidle.h