]> asedeno.scripts.mit.edu Git - linux.git/commit
cpuidle: prepare the cpuidle core to handle multiple drivers
authorDaniel Lezcano <daniel.lezcano@linaro.org>
Wed, 31 Oct 2012 16:44:47 +0000 (16:44 +0000)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Wed, 14 Nov 2012 23:34:22 +0000 (00:34 +0100)
commit13dd52f11a04e616900f565d6a1e5138e58d579f
treee7ce9521c4dbd93d0be9c7acaa1ceb7b7269e1db
parent41682032715c2c969357c81391a442a24dd1c2c2
cpuidle: prepare the cpuidle core to handle multiple drivers

This patch is a preparation for the multiple cpuidle drivers support.

As the next patch will introduce the multiple drivers with the Kconfig
option and we want to keep the code clean and understandable, this patch
defines a set of functions for encapsulating some common parts and splits
what should be done under a lock from the rest.

[rjw: Modified the subject and changelog slightly.]
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