patch-2.4.2 linux/arch/arm/kernel/time.c
Next file: linux/arch/arm/kernel/traps.c
Previous file: linux/arch/arm/kernel/sys_arm.c
Back to the patch index
Back to the overall index
- Lines: 39
- Date:
Thu Feb 8 16:32:44 2001
- Orig file:
v2.4.1/linux/arch/arm/kernel/time.c
- Orig date:
Mon Sep 18 15:15:25 2000
diff -u --recursive --new-file v2.4.1/linux/arch/arm/kernel/time.c linux/arch/arm/kernel/time.c
@@ -134,32 +134,17 @@
#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;
+ static unsigned int count = 50;
- if (current->pid != last_pid) {
- last_pid = current->pid;
- if (last_pid)
- leds_event(led_idle_end);
- else
- leds_event(led_idle_start);
- }
+ if (--count == 0) {
+ count = 50;
+ leds_event(led_timer);
}
-#endif
-#ifdef CONFIG_LEDS_TIMER
- {
- static unsigned int count = 50;
-
- if (--count == 0) {
- count = 50;
- leds_event(led_timer);
- }
- }
-#endif
}
#else
#define do_leds()
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)