aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/include/asm/smp_twd.h
diff options
context:
space:
mode:
authorRussell King <rmk+kernel@arm.linux.org.uk>2010-12-20 14:28:02 +0000
committerRussell King <rmk+kernel@arm.linux.org.uk>2010-12-20 15:09:16 +0000
commit10034aabca9032246762daaca3152f3e79380ea0 (patch)
tree32c0143b054ab6c5beeeb9726eaf86b87f2abd80 /arch/arm/include/asm/smp_twd.h
parentARM: CPU hotplug: fix hard-coded control register constants (diff)
downloadlinux-dev-10034aabca9032246762daaca3152f3e79380ea0.tar.xz
linux-dev-10034aabca9032246762daaca3152f3e79380ea0.zip
ARM: localtimer: clean up local timer on hot unplug
When a CPU is hot unplugged, the generic tick code cleans up the clock event device, but fails to call down to the device's set_mode function to actually shut the device down. To work around this, we've historically had a local_timer_stop() callback out of the hotplug code. However, this adds needless complexity when we have the clock event device itself available. Explicitly call the clock event device's set_mode function with CLOCK_EVT_MODE_UNUSED, so that the hardware can be cleanly shutdown without any special external callbacks. When/if the generic code is fixed, percpu_timer_stop() can be killed off. Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Diffstat (limited to 'arch/arm/include/asm/smp_twd.h')
-rw-r--r--arch/arm/include/asm/smp_twd.h1
1 files changed, 0 insertions, 1 deletions
diff --git a/arch/arm/include/asm/smp_twd.h b/arch/arm/include/asm/smp_twd.h
index 634f357be6bb..fed9981fba08 100644
--- a/arch/arm/include/asm/smp_twd.h
+++ b/arch/arm/include/asm/smp_twd.h
@@ -22,7 +22,6 @@ struct clock_event_device;
extern void __iomem *twd_base;
-void twd_timer_stop(void);
int twd_timer_ack(void);
void twd_timer_setup(struct clock_event_device *);