kernel_optimize_test/drivers/cpuidle/governors
Rafael J. Wysocki 85f6a17f24 cpuidle: teo: Avoid code duplication in conditionals
There are three places in teo_select() where a given amount of time
is compared with TICK_NSEC if tick_nohz_tick_stopped() returns true,
which is a bit of duplicated code.

Avoid that code duplication by defining a helper function to do the
check and using it in all of the places in question.

No intentional functional impact.

Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
2019-11-15 00:54:33 +01:00
..
haltpoll.c cpuidle: Use nanoseconds as the unit of time 2019-11-11 21:56:07 +01:00
ladder.c cpuidle: Use nanoseconds as the unit of time 2019-11-11 21:56:07 +01:00
Makefile cpuidle: add haltpoll governor 2019-07-30 17:27:37 +02:00
menu.c cpuidle: Use nanoseconds as the unit of time 2019-11-11 21:56:07 +01:00
teo.c cpuidle: teo: Avoid code duplication in conditionals 2019-11-15 00:54:33 +01:00