]> git.baikalelectronics.ru Git - kernel.git/commit
clockevents: Fix generic broadcast for FEAT_C3STOP
authorMark Rutland <mark.rutland@arm.com>
Fri, 8 Feb 2013 15:24:07 +0000 (15:24 +0000)
committerThomas Gleixner <tglx@linutronix.de>
Tue, 12 Feb 2013 19:22:28 +0000 (20:22 +0100)
commit9214eeaed2f65ed7a9846174f7530a686ab5dd45
tree7905268873812518cf4f6196f2100e5224733f22
parent29f0da8d0f4efa84ce205321400dc09420b8e3cf
clockevents: Fix generic broadcast for FEAT_C3STOP

Commit 29f0da8d0f: "clockevents: Add generic timer broadcast function"
made tick_device_uses_broadcast set up the generic broadcast function
for dummy devices (where !tick_device_is_functional(dev)), but neglected
to set up the broadcast function for devices that stop in low power
states (with the CLOCK_EVT_FEAT_C3STOP flag).

When these devices enter low power states they will not have the generic
broadcast function assigned, and will bring down the system when an
attempt is made to broadcast to them.

This patch ensures that the broadcast function is also assigned for
devices which require broadcast in low power states.

Reported-by: Stephen Warren <swarren@nvidia.com>
Signed-off-by: Mark Rutland <mark.rutland@arm.com>
Tested-by: Stephen Warren <swarren@nvidia.com>
Cc: linux-arm-kernel@lists.infradead.org
Cc: nico@linaro.org
Cc: Marc.Zyngier@arm.com
Cc: Will.Deacon@arm.com
Cc: santosh.shilimkar@ti.com
Cc: john.stultz@linaro.org
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
kernel/time/tick-broadcast.c