parisc: led: Reduce CPU overhead for disk & lan LED computation
authorHelge Deller <deller@gmx.de>
Fri, 25 Aug 2023 15:46:39 +0000 (17:46 +0200)
committerHelge Deller <deller@gmx.de>
Sat, 26 Aug 2023 08:14:42 +0000 (10:14 +0200)
commit358ad816e52d4253b38c2f312e6b1cbd89e0dbf7
treeae9dd9e9c0ec621a11fc7f6aa420ccdf145cb968
parent8f01caf0c5c14b2dc086c766cf5321fbcdc40bd1
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>
drivers/parisc/led.c