diff options
| author | Zhenzhong Duan <zhenzhong.duan@oracle.com> | 2019-10-23 09:57:14 +0800 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2019-12-21 10:35:27 +0100 |
| commit | 9c319a2d2027dc51d4583061cb9a25682000be4a (patch) | |
| tree | 787b93aff7909429435f1ad2e8a571b5e1f7b1d3 /include/linux/flex_array.h | |
| parent | 0688a490fa9530c25c61b13692578b7c3bd36b39 (diff) | |
cpuidle: Do not unset the driver if it is there already
commit 918c1fe9fbbe46fcf56837ff21f0ef96424e8b29 upstream.
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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'include/linux/flex_array.h')
0 files changed, 0 insertions, 0 deletions
