]> asedeno.scripts.mit.edu Git - linux.git/commit
cpu/hotplug: Add a cpus_read_trylock() function
authorWaiman Long <longman@redhat.com>
Tue, 24 Jul 2018 18:26:04 +0000 (14:26 -0400)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Thu, 26 Jul 2018 08:37:36 +0000 (10:37 +0200)
commit6f4ceee9305dc3fe74099159b460f4b56b506f1d
tree167a0733c55bae01d2ccb6ac7c0148144d0b3589
parent601b218568a107370086dc5c7a1b283f8d463268
cpu/hotplug: Add a cpus_read_trylock() function

There are use cases where it can be useful to have a cpus_read_trylock()
function to work around circular lock dependency problem involving
the cpu_hotplug_lock.

Signed-off-by: Waiman Long <longman@redhat.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
include/linux/cpu.h
kernel/cpu.c