summaryrefslogtreecommitdiff
path: root/drivers/cpuidle/governors/gov.h
blob: cd06a2e7b5067ac93c689c272adf49316a7c3dc1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
/* SPDX-License-Identifier: GPL-2.0 */

/* Common definitions for cpuidle governors. */

#ifndef __CPUIDLE_GOVERNOR_H
#define __CPUIDLE_GOVERNOR_H

/*
 * Idle state target residency threshold used for deciding whether or not to
 * check the time till the closest expected timer event.
 */
#define RESIDENCY_THRESHOLD_NS	(15 * NSEC_PER_USEC)
/*
 * If the closest timer is in this range, the governor idle state selection need
 * not be adjusted after the scheduler tick has been stopped.
 */
#define SAFE_TIMER_RANGE_NS	(2 * TICK_NSEC)

#endif /* __CPUIDLE_GOVERNOR_H */