[ARM] 5444/1: ARM: Realview: Fix event-device multiplicators in localtimer.c

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Linux Kernel Mailing List
Date: Friday, April 3, 2009 - 10:59 am

Gitweb:     http://git.kernel.org/linus/9d681f3a1b27fdfc17ea251cf8d5f627dab34670
Commit:     9d681f3a1b27fdfc17ea251cf8d5f627dab34670
Parent:     91c39dcb7365ed1ff34ee9b3541304da5c942696
Author:     Santosh Shilimkar <santosh.shilimkar@ti.com>
AuthorDate: Thu Apr 2 15:28:58 2009 +0100
Committer:  Russell King <rmk+kernel@arm.linux.org.uk>
CommitDate: Thu Apr 2 15:53:17 2009 +0100

    [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>
---
 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 67d6d9c..d0d39ad 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);
--
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[ARM] 5444/1: ARM: Realview: Fix event-device multiplicato ..., Linux Kernel Mailing ..., (Fri Apr 3, 10:59 am)