aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/cpuidle/cpuidle-arm.c
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/cpuidle/cpuidle-arm.c
parentMerge back earlier cpuidle material for v5.5. (diff)
downloadlinux-dev-918c1fe9fbbe46fcf56837ff21f0ef96424e8b29.tar.xz
linux-dev-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/cpuidle/cpuidle-arm.c')
0 files changed, 0 insertions, 0 deletions