]> git.baikalelectronics.ru Git - kernel.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)
commit51b37c2419df98f4a2609ac3d69fe6672ed7489b
tree167a0733c55bae01d2ccb6ac7c0148144d0b3589
parent1f6290e9a6ae2e5961f96b7be9201399c7cb7b5c
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