android_kernel_xiaomi_sm7250/drivers/cpuidle
Zhenzhong Duan c96788214e 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: 82467a5a88 ("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>
2019-12-17 20:35:00 +01:00
..
governors cpuidle: menu: Fix wakeup statistics updates for polling state 2019-11-24 08:20:07 +01:00
coupled.c
cpuidle-arm.c
cpuidle-at91.c
cpuidle-big_little.c
cpuidle-calxeda.c
cpuidle-clps711x.c
cpuidle-cps.c
cpuidle-exynos.c
cpuidle-kirkwood.c
cpuidle-mvebu-v7.c
cpuidle-powernv.c
cpuidle-pseries.c
cpuidle-ux500.c
cpuidle-zynq.c
cpuidle.c
cpuidle.h
driver.c cpuidle: Do not unset the driver if it is there already 2019-12-17 20:35:00 +01:00
dt_idle_states.c
dt_idle_states.h
governor.c
Kconfig
Kconfig.arm
Kconfig.mips
Kconfig.powerpc
Makefile
poll_state.c cpuidle: menu: Fix wakeup statistics updates for polling state 2019-11-24 08:20:07 +01:00
sysfs.c