diff options
author | Russell King <rmk+kernel@arm.linux.org.uk> | 2010-07-26 08:19:43 -0400 |
---|---|---|
committer | Russell King <rmk+kernel@arm.linux.org.uk> | 2010-07-27 05:48:42 -0400 |
commit | 5388a6b266e9c3357353332ba0cd5549082887f1 (patch) | |
tree | 9d035a01bb75fa466e70cd9590eb963a30f3d53d /arch/arm/kernel/smp_twd.c | |
parent | 9ca03a21e320a6bf44559323527aba704bcc8772 (diff) |
ARM: SMP: Always enable clock event broadcast support
The TWD local timers are unable to wake up the CPU when it is placed
into a low power mode, eg. C3. Therefore, we need to adapt things
such that the TWD code can cope with this.
We do this by always providing a broadcast tick function, and marking
the fact that the TWD local timer will stop in low power modes. This
means that when the CPU is placed into a low power mode, the core
timer code marks this fact, and allows an IPI to be given to the core.
Tested-by: Santosh Shilimkar <santosh.shilimkar@ti.com>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Cc: Catalin Marinas <catalin.marinas@arm.com>
Cc: Thomas Gleixner <tglx@linutronix.de>
Diffstat (limited to 'arch/arm/kernel/smp_twd.c')
-rw-r--r-- | arch/arm/kernel/smp_twd.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/arch/arm/kernel/smp_twd.c b/arch/arm/kernel/smp_twd.c index 7c5f0c024db7..35882fbf37f9 100644 --- a/arch/arm/kernel/smp_twd.c +++ b/arch/arm/kernel/smp_twd.c | |||
@@ -132,7 +132,8 @@ void __cpuinit twd_timer_setup(struct clock_event_device *clk) | |||
132 | twd_calibrate_rate(); | 132 | twd_calibrate_rate(); |
133 | 133 | ||
134 | clk->name = "local_timer"; | 134 | clk->name = "local_timer"; |
135 | clk->features = CLOCK_EVT_FEAT_PERIODIC | CLOCK_EVT_FEAT_ONESHOT; | 135 | clk->features = CLOCK_EVT_FEAT_PERIODIC | CLOCK_EVT_FEAT_ONESHOT | |
136 | CLOCK_EVT_FEAT_C3STOP; | ||
136 | clk->rating = 350; | 137 | clk->rating = 350; |
137 | clk->set_mode = twd_set_mode; | 138 | clk->set_mode = twd_set_mode; |
138 | clk->set_next_event = twd_set_next_event; | 139 | clk->set_next_event = twd_set_next_event; |