diff options
author | Santosh Shilimkar <santosh.shilimkar@ti.com> | 2009-04-02 10:28:58 -0400 |
---|---|---|
committer | Russell King <rmk+kernel@arm.linux.org.uk> | 2009-04-02 10:53:17 -0400 |
commit | 9d681f3a1b27fdfc17ea251cf8d5f627dab34670 (patch) | |
tree | fb5e655ae0a2c74f8db9e7a6d00f76e428f1ee70 /arch/arm/mach-realview/localtimer.c | |
parent | 91c39dcb7365ed1ff34ee9b3541304da5c942696 (diff) |
[ARM] 5444/1: ARM: Realview: Fix event-device multiplicators in localtimer.c
Set the "mult" to finite value in the local_timer_setup in case
of CONFIG_LOCAL_TIMERS not enabled. Othewise this throws warning
in the boot log because of detect zero event-device multiplicators.
This can cause division-by-zero crashes.
Signed-off-by: Santosh Shilimkar <santosh.shilimkar@ti.com>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Diffstat (limited to 'arch/arm/mach-realview/localtimer.c')
-rw-r--r-- | arch/arm/mach-realview/localtimer.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/arm/mach-realview/localtimer.c b/arch/arm/mach-realview/localtimer.c index 67d6d9cc68b2..d0d39adf6407 100644 --- a/arch/arm/mach-realview/localtimer.c +++ b/arch/arm/mach-realview/localtimer.c | |||
@@ -191,6 +191,7 @@ void __cpuinit local_timer_setup(void) | |||
191 | clk->name = "dummy_timer"; | 191 | clk->name = "dummy_timer"; |
192 | clk->features = CLOCK_EVT_FEAT_DUMMY; | 192 | clk->features = CLOCK_EVT_FEAT_DUMMY; |
193 | clk->rating = 200; | 193 | clk->rating = 200; |
194 | clk->mult = 1; | ||
194 | clk->set_mode = dummy_timer_set_mode; | 195 | clk->set_mode = dummy_timer_set_mode; |
195 | clk->broadcast = smp_timer_broadcast; | 196 | clk->broadcast = smp_timer_broadcast; |
196 | clk->cpumask = cpumask_of(cpu); | 197 | clk->cpumask = cpumask_of(cpu); |