diff options
author | Mian Yousaf Kaukab <mian.yousaf.kaukab@stericsson.com> | 2010-06-16 17:00:10 +0200 |
---|---|---|
committer | John Rigby <john.rigby@linaro.org> | 2010-09-02 22:45:36 -0600 |
commit | 6727ad56664d241adadbc38e5e9c1dee6a4c9bbc (patch) | |
tree | 1be6e192c8bf2c73460d76aabb9bf6f2f9b59804 /arch/arm/mach-ux500 | |
parent | 42c9995516bad160b8a22b7e2438d22cae876048 (diff) |
set boradcast callback if clockevent broadcast enabled
Signed-off-by: Mian Yousaf Kaukab <mian.yousaf.kaukab@stericsson.com>
Change-Id: If02a27f02d4a67e2aff4da676a677590576d13e8
Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/2420
Reviewed-by: Jonas ABERG <jonas.aberg@stericsson.com>
Diffstat (limited to 'arch/arm/mach-ux500')
-rwxr-xr-x | arch/arm/mach-ux500/localtimer.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/arch/arm/mach-ux500/localtimer.c b/arch/arm/mach-ux500/localtimer.c index 2288f6a7c51..df8dc05c123 100755 --- a/arch/arm/mach-ux500/localtimer.c +++ b/arch/arm/mach-ux500/localtimer.c @@ -18,11 +18,20 @@ #include <asm/smp_twd.h> #include <asm/localtimer.h> +#ifdef CONFIG_GENERIC_CLOCKEVENTS_BROADCAST +void smp_timer_broadcast(const struct cpumask *mask); +#endif + /* * Setup the local clock events for a CPU. */ void __cpuinit local_timer_setup(struct clock_event_device *evt) { evt->irq = IRQ_LOCALTIMER; + +#ifdef CONFIG_GENERIC_CLOCKEVENTS_BROADCAST + evt->broadcast = smp_timer_broadcast; +#endif + twd_timer_setup(evt); } |