Commit 6d15cb42 authored by David Brownell's avatar David Brownell Committed by Russell King

[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: default avatarDavid Brownell <dbrownell@users.sourceforge.net>
Signed-off-by: default avatarRussell King <rmk+kernel@arm.linux.org.uk>
parent 3f84ada6
...@@ -220,10 +220,10 @@ EXPORT_SYMBOL(leds_event); ...@@ -220,10 +220,10 @@ EXPORT_SYMBOL(leds_event);
#ifdef CONFIG_LEDS_TIMER #ifdef CONFIG_LEDS_TIMER
static inline void do_leds(void) static inline void do_leds(void)
{ {
static unsigned int count = 50; static unsigned int count = HZ/2;
if (--count == 0) { if (--count == 0) {
count = 50; count = HZ/2;
leds_event(led_timer); leds_event(led_timer);
} }
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment