[parisc-linux-cvs] Fix for ksoftirqd_CPU0 soaking up cpu

Richard Hirst rhirst@linuxcare.com
Mon, 10 Sep 2001 13:59:15 +0100


Only schedule the led tasklet if it is enabled.

Richard



Index: arch/parisc/kernel/time.c
===================================================================
RCS file: /home/cvs/parisc/linux/arch/parisc/kernel/time.c,v
retrieving revision 1.15
diff -u -r1.15 time.c
--- time.c      2001/09/06 09:44:07     1.15
+++ time.c      2001/09/10 12:53:30
@@ -81,7 +81,10 @@
        }
     
 #ifdef CONFIG_CHASSIS_LCD_LED
-       if (cpu == 0)
+       /* Only schedule the led tasklet on cpu 0, and only if it
+        * is enabled.
+        */
+       if (cpu == 0 && !atomic_read(&led_tasklet.count))
                tasklet_schedule(&led_tasklet);
 #endif
 }