]> git.karo-electronics.de Git - linux-beck.git/commit
cpuidle: initialize the broadcast timer framework
authorDaniel Lezcano <daniel.lezcano@linaro.org>
Wed, 27 Mar 2013 10:22:10 +0000 (10:22 +0000)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Sun, 31 Mar 2013 23:10:28 +0000 (01:10 +0200)
commita06df062a189a8d5588babb8bf0bb78672497798
tree356822486d2a63b2dae44fab5421578eef37b1f2
parent4dbad816febb6cb7340e36af4f5c0dc86e55a2ca
cpuidle: initialize the broadcast timer framework

The commit 89878baa73f0f1c679355006bd8632e5d78f96c2 introduced
the CPUIDLE_FLAG_TIMER_STOP flag where we specify a specific idle
state stops the local timer.

Now use this flag to check at init time if one state will need
the broadcast timer and, in this case, setup the broadcast timer
framework. That prevents multiple code duplication in the drivers.

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