Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit 18608255 authored by Osvaldo Banuelos's avatar Osvaldo Banuelos
Browse files

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: default avatarOsvaldo Banuelos <osvaldob@codeaurora.org>
parents b2493d05 9a43ce11
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment