OSDN Git Service

ARM: 8441/2: twd: Don't set CLOCK_EVT_FEAT_C3STOP unconditionally
authorMarc Gonzalez <marc_gonzalez@sigmadesigns.com>
Fri, 9 Oct 2015 09:20:47 +0000 (10:20 +0100)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Fri, 9 Oct 2015 15:22:53 +0000 (16:22 +0100)
commit194444c52edd857210b3895e83ce45c64b58e251
tree65e0cc031ef48d29ab39561728c75df51ef1959f
parentff5138f3af4ed61ed42e00d7d771a0502460488f
ARM: 8441/2: twd: Don't set CLOCK_EVT_FEAT_C3STOP unconditionally

In 5388a6b266 ("ARM: SMP: Always enable clock event broadcast support")
Russell noted that "the TWD local timers are unable to wake up the CPU
when it is placed into a low power mode".

However, some platforms do not stop the TWD block in low-power mode,
and can thus use the TWD timer in one-shot mode, without setting up
a broadcast device.

Make the driver check for the "always-on" boolean property, and set
the CLOCK_EVT_FEAT_C3STOP flag accordingly.

Acked-by: Mark Rutland <mark.rutland@arm.com>
Signed-off-by: Marc Gonzalez <marc_gonzalez@sigmadesigns.com>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Documentation/devicetree/bindings/arm/twd.txt
arch/arm/kernel/smp_twd.c