WSL2-Linux-Kernel/drivers/cpuidle
Rafael J. Wysocki a802ea9645 cpuidle: Check the sign of index in cpuidle_reflect()
Avoid calling the governor's ->reflect method if the state index
passed to cpuidle_reflect() is negative.

This allows the analogous check to be dropped from menu_reflect(),
so do that too, and ensures that arbitrary error codes can be
passed to cpuidle_reflect() as the index with no adverse
consequences.

Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Reviewed-by: Daniel Lezcano <daniel.lezcano@linaro.org>
Acked-by: Peter Zijlstra (Intel) <peterz@infradead.org>
2015-05-04 22:53:28 +02:00
..
governors cpuidle: Check the sign of index in cpuidle_reflect() 2015-05-04 22:53:28 +02:00
Kconfig ARM: cpuidle: Enable the ARM64 driver for both ARM32/ARM64 2015-03-24 10:16:11 +01:00
Kconfig.arm ARM: cpuidle: Enable the ARM64 driver for both ARM32/ARM64 2015-03-24 10:16:11 +01:00
Kconfig.mips
Kconfig.powerpc
Makefile ARM: cpuidle: Enable the ARM64 driver for both ARM32/ARM64 2015-03-24 10:16:11 +01:00
coupled.c drivers: fix up obsolete cpu function usage. 2015-03-05 13:37:02 +10:30
cpuidle-arm.c ARM: cpuidle: Register per cpuidle device 2015-03-24 14:46:25 +01:00
cpuidle-at91.c ARM: cpuidle: Remove duplicate header inclusion 2015-03-23 18:03:11 +01:00
cpuidle-big_little.c
cpuidle-calxeda.c
cpuidle-clps711x.c
cpuidle-cps.c
cpuidle-exynos.c ARM: SoC fixes for v4.1 2015-04-22 09:03:30 -07:00
cpuidle-kirkwood.c ARM: cpuidle: Remove duplicate header inclusion 2015-03-23 18:03:11 +01:00
cpuidle-mvebu-v7.c cpuidle: mvebu: Update cpuidle thresholds for Armada XP SOCs 2015-03-13 18:31:29 +01:00
cpuidle-powernv.c cpuidle: powernv: Avoid endianness conversions while parsing DT 2015-02-19 23:44:38 +01:00
cpuidle-pseries.c
cpuidle-ux500.c ARM: cpuidle: Remove duplicate header inclusion 2015-03-23 18:03:11 +01:00
cpuidle-zynq.c ARM: cpuidle: Remove duplicate header inclusion 2015-03-23 18:03:11 +01:00
cpuidle.c cpuidle: Check the sign of index in cpuidle_reflect() 2015-05-04 22:53:28 +02:00
cpuidle.h
driver.c cpuidle: Use explicit broadcast control function 2015-04-03 08:44:32 +02:00
dt_idle_states.c
dt_idle_states.h
governor.c
sysfs.c cpuidle: remove state_count field from struct cpuidle_device 2015-04-03 13:15:50 +02:00