Merge cpuhp-registration-fixes into msm-3.10
CPU hotplug callback registration takes the locks cpu_hotplug and cpu_add_remove_lock in one order whereas the hotplug procedure takes the same locks in the opposite order. Patch series address a race condition when registering these callbacks and prevents an ABBA deadlock. See LKML[0]. The fix is split into two main parts: 1- Add support for cpu_notifier_register_begin and cpu_notifier_register_done() 2- Update driver-specific cpu hotplug call back registration to use newly added APIs in 1 and drop get/put_online_cpus() [0]: https://lkml.org/lkml/2014/2/14/59 * (13 commits): cpu: fix section mismatch warnings with __hotcpu_register net/core/flow.c: Fix CPU hotplug callback registration mm, zswap: Fix CPU hotplug callback registration mm, vmstat: Fix CPU hotplug callback registration profile: Fix CPU hotplug callback registration trace, ring-buffer: Fix CPU hotplug callback registration drivers/base/topology.c: Fix CPU hotplug callback registration arm64, debug-monitors: Fix CPU hotplug callback registration arm64, hw_breakpoint.c: Fix CPU hotplug callback registration arm, hw-breakpoint: Fix CPU hotplug callback registration CPU hotplug, perf: Fix CPU hotplug callback registration Doc/cpu-hotplug: Specify race-free way to register CPU hotplug callbacks CPU hotplug: Provide lockless versions of callback registration functions Change-Id: I875178564d7eb77bc2acf1fceeacb03bf64ffb2c Signed-off-by:Osvaldo Banuelos <osvaldob@codeaurora.org>
Loading
Please register or sign in to comment