summaryrefslogtreecommitdiffstats
path: root/drivers/acpi
diff options
context:
space:
mode:
authorZhenzhong Duan <zhenzhong.duan@oracle.com>2019-10-23 09:57:14 +0800
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>2019-10-24 23:22:33 +0200
commit918c1fe9fbbe46fcf56837ff21f0ef96424e8b29 (patch)
tree1379838ce6818072eff03abe646081f37b1b97ef /drivers/acpi
parent2c2a83d329b89c74063580bad95bcb595dc09535 (diff)
downloadlinux-918c1fe9fbbe46fcf56837ff21f0ef96424e8b29.tar.gz
linux-918c1fe9fbbe46fcf56837ff21f0ef96424e8b29.tar.bz2
linux-918c1fe9fbbe46fcf56837ff21f0ef96424e8b29.zip
cpuidle: Do not unset the driver if it is there already
Fix __cpuidle_set_driver() to check if any of the CPUs in the mask has a driver different from drv already and, if so, return -EBUSY before updating any cpuidle_drivers per-CPU pointers. Fixes: 82467a5a885d ("cpuidle: simplify multiple driver support") Cc: 3.11+ <stable@vger.kernel.org> # 3.11+ Signed-off-by: Zhenzhong Duan <zhenzhong.duan@oracle.com> [ rjw: Subject & changelog ] Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'drivers/acpi')
0 files changed, 0 insertions, 0 deletions