Skip to content

Commit

Permalink
[ARM] 3926/1: make timer led handle HZ != 100
Browse files Browse the repository at this point in the history
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 <dbrownell@users.sourceforge.net>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
  • Loading branch information
David Brownell authored and Russell King committed Nov 7, 2006
1 parent 3f84ada commit 6d15cb4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions arch/arm/kernel/time.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
}
Expand Down

0 comments on commit 6d15cb4

Please sign in to comment.