summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSantosh Shilimkar <santosh.shilimkar@ti.com>2009-04-02 16:28:58 +0200
committerRussell King <rmk+kernel@arm.linux.org.uk>2009-04-02 16:53:17 +0200
commit9d681f3a1b27fdfc17ea251cf8d5f627dab34670 (patch)
treefb5e655ae0a2c74f8db9e7a6d00f76e428f1ee70
parent[ARM] 5442/1: pxa/cm-x255: fix reverse RDY gpios in PCMCIA driver (diff)
downloadlinux-9d681f3a1b27fdfc17ea251cf8d5f627dab34670.tar.xz
linux-9d681f3a1b27fdfc17ea251cf8d5f627dab34670.zip
[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>
-rw-r--r--arch/arm/mach-realview/localtimer.c1
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)
clk->name = "dummy_timer";
clk->features = CLOCK_EVT_FEAT_DUMMY;
clk->rating = 200;
+ clk->mult = 1;
clk->set_mode = dummy_timer_set_mode;
clk->broadcast = smp_timer_broadcast;
clk->cpumask = cpumask_of(cpu);