PATCH: Create new LED trigger for CPU activity (ledtrig-cpu)
I'd like to apologize profusely for the incompetence of my previous mailer. Rest assured, the programmers responsible will be sacked, if I ever meet them.
Here's a version that's plain text, and against 2.6.17-git25. It *should* simply be a plain text MIME attachment.
I'd appreciate any comments, now that you can read my patch. :-\
Thanks,
Thomas Tuttle
drivers/leds/Kconfig +35 -0
@@ -93,6 +93,41 @@ This allows LEDs to be controlled by IDE disk activity. If unsure, say Y. +config LEDS_TRIGGER_CPU + tristate "LED CPU Trigger" + depends LEDS_TRIGGERS + help + This allows LEDs to be controlled by CPU activity. + If unsure, say Y. + +config LEDS_TRIGGER_CPU_INCLUDE_USER + bool "Include user time in CPU trigger" + depends LEDS_TRIGGER_CPU + default y + help + This option makes user CPU time cause the CPU trigger to activate. + +config LEDS_TRIGGER_CPU_INCLUDE_NICE + bool "Include nice time in CPU trigger" + depends LEDS_TRIGGER_CPU + default n + help + This option makes nice CPU time cause the CPU trigger to activate. + +config LEDS_TRIGGER_CPU_INCLUDE_SYSTEM + bool "Include system time in CPU trigger" + depends LEDS_TRIGGER_CPU + default y + help + This option makes system CPU time cause the CPU trigger to activate. + +config LEDS_TRIGGER_CPU_INCLUDE_IOWAIT + bool "Include iowait time in CPU trigger" + depends LEDS_TRIGGER_CPU + default n + help + This option makes iowait CPU time cause the CPU trigger to activate. + config LEDS_TRIGGER_HEARTBEAT tristate "LED Heartbeat Trigger" depends LEDS_TRIGGERS
drivers/leds/ledtrig-cpu.c +87 -0
87 lines not on this page · raw message
drivers/leds/Makefile +1 -0
@@ -16,4 +16,5 @@ # LED Triggers obj-$(CONFIG_LEDS_TRIGGER_TIMER) += ledtrig-timer.o obj-$(CONFIG_LEDS_TRIGGER_IDE_DISK) += ledtrig-ide-disk.o +obj-$(CONFIG_LEDS_TRIGGER_CPU) += ledtrig-cpu.o obj-$(CONFIG_LEDS_TRIGGER_HEARTBEAT) += ledtrig-heartbeat.o