From: David Brownell Date: Mon, 6 Nov 2006 18:29:16 +0000 (+0100) Subject: [ARM] 3926/1: make timer led handle HZ != 100 X-Git-Tag: v3.12-rc1~31920^2~20^2~180^2~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=6d15cb42fe4f8c07c80c9d49db721fcfe2da0e90;p=kernel%2Fkernel-generic.git [ARM] 3926/1: make timer led handle HZ != 100 The timer LED is unusable at HZ=large, since it's got a hard-wired value of 100 ticks per cycle; when HZ=1024 (for example) it's essentially always-on. This patch just makes that be HZ ticks per cycle. Signed-off-by: David Brownell Signed-off-by: Russell King --- diff --git a/arch/arm/kernel/time.c b/arch/arm/kernel/time.c index 0c5a609..6ff5e3f 100644 --- a/arch/arm/kernel/time.c +++ b/arch/arm/kernel/time.c @@ -220,10 +220,10 @@ EXPORT_SYMBOL(leds_event); #ifdef CONFIG_LEDS_TIMER static inline void do_leds(void) { - static unsigned int count = 50; + static unsigned int count = HZ/2; if (--count == 0) { - count = 50; + count = HZ/2; leds_event(led_timer); } }