led-triggers: create a trigger for CPU activity
authorBryan Wu <bryan.wu@canonical.com>
Sat, 25 Jun 2011 10:33:50 +0000 (18:33 +0800)
committerBryan Wu <bryan.wu@canonical.com>
Tue, 31 Jul 2012 13:23:31 +0000 (21:23 +0800)
commit8f88731d052d2b14f332249a9332690ac1b365ac
treeaf9704aab65f98b0942a2c61cd857b35dbf86457
parent28a33cbc24e4256c143dce96c7d93bf423229f92
led-triggers: create a trigger for CPU activity

Attempting to consolidate the ARM LED code, this removes the
custom RealView LED trigger code to turn LEDs on and off in
response to CPU activity and replace it with a standard trigger.

(bryan.wu@canonical.com:
It introduces several syscore stubs into this trigger.
It also provides ledtrig_cpu trigger event stub in <linux/leds.h>.
Although it was inspired by ARM work, it can be used in other arch.)

Cc: Richard Purdie <rpurdie@rpsys.net>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Bryan Wu <bryan.wu@canonical.com>
Reviewed-by: Jamie Iles <jamie@jamieiles.com>
Tested-by: Jochen Friedrich <jochen@scram.de>
drivers/leds/Kconfig
drivers/leds/Makefile
drivers/leds/ledtrig-cpu.c [new file with mode: 0644]
include/linux/leds.h