summaryrefslogtreecommitdiffstats
path: root/lib/sort.c
diff options
context:
space:
mode:
authorThomas Gleixner <tglx@linutronix.de>2016-08-12 19:49:39 +0200
committerThomas Gleixner <tglx@linutronix.de>2016-09-02 20:05:05 +0200
commitcf392d10b69e6e6c57ceea48b347a2ab1a4b75b2 (patch)
tree45d917264300caaab4eede4ab32b10f75bd8e4c2 /lib/sort.c
parenta724632ca0c84b494875e9367e07e29472c139ba (diff)
downloadlinux-cf392d10b69e6e6c57ceea48b347a2ab1a4b75b2.tar.bz2
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>
Diffstat (limited to 'lib/sort.c')
0 files changed, 0 insertions, 0 deletions