ledtrig-cpu: Handle CPU hot(un)plugging
authorPawel Moll <pawel.moll@arm.com>
Wed, 22 Jan 2014 16:32:02 +0000 (08:32 -0800)
committerBryan Wu <cooloney@gmail.com>
Thu, 27 Feb 2014 17:56:54 +0000 (09:56 -0800)
commitfba14ae8e924881038406ecff031d2d17becc2cb
tree86a5548effb8fab412e9940d92cfccb7e2a14927
parentcfbf8d4857c26a8a307fb7cd258074c9dcd8c691
ledtrig-cpu: Handle CPU hot(un)plugging

When CPU is hot(un)plugged, no syscore notification is being
generated, nor is cpuidle involved. This leaves the CPU LED
turned on, because the dying thread is doing some work (LED on)
and than it is... well, dying (LED still on :-)

Added notifier block for hot(un)plugging operations, generating
existing trigger events.

Signed-off-by: Pawel Moll <pawel.moll@arm.com>
Signed-off-by: Bryan Wu <cooloney@gmail.com>
drivers/leds/trigger/ledtrig-cpu.c