Skip to content

Commit 358ad81

Browse files
committed
parisc: led: Reduce CPU overhead for disk & lan LED computation
Older PA-RISC machines have LEDs which show the disk- and LAN-activity. The computation is done in software and takes quite some time, e.g. on a J6500 this may take up to 60% time of one CPU if the machine is loaded via network traffic. Since most people don't care about the LEDs, start with LEDs disabled and just show a CPU heartbeat LED. The disk and LAN LEDs can be turned on manually via /proc/pdc/led. Signed-off-by: Helge Deller <deller@gmx.de> Cc: <stable@vger.kernel.org>
1 parent 8f01caf commit 358ad81

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

drivers/parisc/led.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,8 +56,8 @@
5656
static int led_type __read_mostly = -1;
5757
static unsigned char lastleds; /* LED state from most recent update */
5858
static unsigned int led_heartbeat __read_mostly = 1;
59-
static unsigned int led_diskio __read_mostly = 1;
60-
static unsigned int led_lanrxtx __read_mostly = 1;
59+
static unsigned int led_diskio __read_mostly;
60+
static unsigned int led_lanrxtx __read_mostly;
6161
static char lcd_text[32] __read_mostly;
6262
static char lcd_text_default[32] __read_mostly;
6363
static int lcd_no_led_support __read_mostly = 0; /* KittyHawk doesn't support LED on its LCD */

0 commit comments

Comments
 (0)