kernel_optimize_test/drivers/cpuidle
Rafael J. Wysocki 814b8797f9 cpuidle: menu: Avoid overflows when computing variance
The variance computation in get_typical_interval() may overflow if
the square of the value of diff exceeds the maximum for the int64_t
data type value which basically is the case when it is of the order
of UINT_MAX.

However, data points so far in the future don't matter for idle
state selection anyway, so change the initial threshold value in
get_typical_interval() to INT_MAX which will cause more "outlying"
data points to be discarded without affecting the selection result.

Reported-by: Randy Dunlap <rdunlap@infradead.org>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
2019-03-07 10:54:22 +01:00
..
governors cpuidle: menu: Avoid overflows when computing variance 2019-03-07 10:54:22 +01:00
coupled.c
cpuidle-arm.c ARM: cpuidle: Convert to use cpuidle_register|unregister() 2018-11-08 18:53:00 +01:00
cpuidle-at91.c
cpuidle-big_little.c cpuidle: big.LITTLE: fix refcount leak 2018-12-11 12:09:48 +01:00
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 powerpc/pseries/cpuidle: Fix preempt warning 2018-12-04 19:45:01 +11:00
cpuidle-ux500.c
cpuidle-zynq.c
cpuidle.c cpuidle: Add 'above' and 'below' idle state metrics 2018-12-12 23:22:18 +01:00
cpuidle.h cpuidle: Add cpuidle.governor= command line parameter 2018-12-11 12:08:44 +01:00
driver.c
dt_idle_states.c cpuidle: dt: bail out if the idle-state DT node is not compatible 2019-02-01 12:58:58 +01:00
dt_idle_states.h
governor.c cpuidle: Add cpuidle.governor= command line parameter 2018-12-11 12:08:44 +01:00
Kconfig cpuidle: New timer events oriented governor for tickless systems 2019-01-16 23:07:30 +01:00
Kconfig.arm
Kconfig.mips
Kconfig.powerpc
Makefile
poll_state.c cpuidle: poll_state: Fix default time limit 2019-01-30 22:57:42 +01:00
sysfs.c cpuidle: Add 'above' and 'below' idle state metrics 2018-12-12 23:22:18 +01:00