From 9d681f3a1b27fdfc17ea251cf8d5f627dab34670 Mon Sep 17 00:00:00 2001 From: Santosh Shilimkar Date: Thu, 2 Apr 2009 15:28:58 +0100 Subject: [PATCH] [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 Signed-off-by: Russell King --- arch/arm/mach-realview/localtimer.c | 1 + 1 file changed, 1 insertion(+) 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); -- 2.39.2