diff options
author | Zhenzhong Duan <zhenzhong.duan@oracle.com> | 2019-10-23 04:57:14 +0300 |
---|---|---|
committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2019-10-25 00:22:33 +0300 |
commit | 918c1fe9fbbe46fcf56837ff21f0ef96424e8b29 (patch) | |
tree | 1379838ce6818072eff03abe646081f37b1b97ef /drivers/cpuidle/cpuidle-powernv.c | |
parent | 2c2a83d329b89c74063580bad95bcb595dc09535 (diff) | |
download | linux-918c1fe9fbbe46fcf56837ff21f0ef96424e8b29.tar.xz |
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-powernv.c')
0 files changed, 0 insertions, 0 deletions