leds/trigger/cpu: Move from CPU_STARTING to ONLINE level
authorSebastian Andrzej Siewior <bigeasy@linutronix.de>
Wed, 20 Jul 2016 15:24:55 +0000 (17:24 +0200)
committerThomas Gleixner <tglx@linutronix.de>
Fri, 22 Jul 2016 19:53:18 +0000 (21:53 +0200)
commitcd894f149732a06ba4b2ccdc4cb86edf7ff68620
tree6c670d6434de49a1d0e535f001a9ff5650ea3bf0
parentbdab88e006504cd83fac98705814485cbe3ef5b4
leds/trigger/cpu: Move from CPU_STARTING to ONLINE level

There is no need the ledtriger to be called *that* early in the hotplug
process (+ with disabled interrupts). As explained by Jacek Anaszewski [0]
there is no need for it.
Therefore this patch moves it to the ONLINE/PREPARE_DOWN level using the
dynamic registration for the id.

[0] https://lkml.kernel.org/r/578C92BC.2070603@samsung.com

Signed-off-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
Acked-by: Jacek Anaszewski <j.anaszewski@samsung.com>
Acked-by: Linus Walleij <linus.walleij@linaro.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Paul Gortmaker <paul.gortmaker@windriver.com>
Cc: Richard Purdie <rpurdie@rpsys.net>
Cc: rt@linutronix.de
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: linux-leds@vger.kernel.org
Link: http://lkml.kernel.org/r/1469028295-14702-1-git-send-email-bigeasy@linutronix.de
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
drivers/leds/trigger/ledtrig-cpu.c
include/linux/cpuhotplug.h