1 /* SPDX-License-Identifier: GPL-2.0 */ 2 3 /* Common definitions for cpuidle governors. */ 4 5 #ifndef __CPUIDLE_GOVERNOR_H 6 #define __CPUIDLE_GOVERNOR_H 7 8 /* 9 * Idle state target residency threshold used for deciding whether or not to 10 * check the time till the closest expected timer event. 11 */ 12 #define RESIDENCY_THRESHOLD_NS (15 * NSEC_PER_USEC) 13 /* 14 * If the closest timer is in this range, the governor idle state selection need 15 * not be adjusted after the scheduler tick has been stopped. 16 */ 17 #define SAFE_TIMER_RANGE_NS (2 * TICK_NSEC) 18 19 #endif /* __CPUIDLE_GOVERNOR_H */ 20