]> git.baikalelectronics.ru Git - kernel.git/commit
cpu/hotplug: Add multi instance support
authorThomas Gleixner <tglx@linutronix.de>
Fri, 12 Aug 2016 17:49:39 +0000 (19:49 +0200)
committerThomas Gleixner <tglx@linutronix.de>
Fri, 2 Sep 2016 18:05:05 +0000 (20:05 +0200)
commit3ca2be8f160282a9d3aefd4a0803dd718210a8c0
tree45d917264300caaab4eede4ab32b10f75bd8e4c2
parenta2a43ca91e63c011f063705e82b06dde438db6d4
cpu/hotplug: Add multi instance support

This patch adds the ability for a given state to have multiple
instances. Until now all states have a single instance and the startup /
teardown callback use global variables.
A few drivers need to perform a the same callbacks on multiple
"instances". Currently we have three drivers in tree which all have a
global list which they iterate over. With multi instance they support
don't need their private list and the functionality has been moved into
core code. Plus we hold the hotplug lock in core so no cpus comes/goes
while instances are registered and we do rollback in error case :)

Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
Cc: Mark Rutland <mark.rutland@arm.com>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Will Deacon <will.deacon@arm.com>
Cc: rt@linutronix.de
Link: http://lkml.kernel.org/r/1471024183-12666-3-git-send-email-bigeasy@linutronix.de
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
include/linux/cpuhotplug.h
include/trace/events/cpuhp.h
kernel/cpu.c