summaryrefslogtreecommitdiffstats
path: root/arch/arm/kernel/time.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/arm/kernel/time.c')
-rw-r--r--arch/arm/kernel/time.c27
1 files changed, 6 insertions, 21 deletions
diff --git a/arch/arm/kernel/time.c b/arch/arm/kernel/time.c
index 926cdff2f..be24bdcfc 100644
--- a/arch/arm/kernel/time.c
+++ b/arch/arm/kernel/time.c
@@ -134,32 +134,17 @@ void (*leds_event)(led_event_t) = dummy_leds_event;
#ifdef CONFIG_MODULES
EXPORT_SYMBOL(leds_event);
#endif
+#endif
+#ifdef CONFIG_LEDS_TIMER
static void do_leds(void)
{
-#ifdef CONFIG_LEDS_CPU
- {
- static int last_pid;
-
- if (current->pid != last_pid) {
- last_pid = current->pid;
- if (last_pid)
- leds_event(led_idle_end);
- else
- leds_event(led_idle_start);
- }
- }
-#endif
-#ifdef CONFIG_LEDS_TIMER
- {
- static unsigned int count = 50;
+ static unsigned int count = 50;
- if (--count == 0) {
- count = 50;
- leds_event(led_timer);
- }
+ if (--count == 0) {
+ count = 50;
+ leds_event(led_timer);
}
-#endif
}
#else
#define do_leds()