]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit2536c1a6ad669b92500faa1a57d1e155e03e1dce
treeaf9704aab65f98b0942a2c61cd857b35dbf86457
parentb4d0930db64c37d2c2a66d6f7556c555a97c2d51
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