diff options
Diffstat (limited to 'include/linux/tick.h')
-rw-r--r-- | include/linux/tick.h | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/include/linux/tick.h b/include/linux/tick.h index b232ccc0ee29..ca40838fdfb7 100644 --- a/include/linux/tick.h +++ b/include/linux/tick.h | |||
@@ -127,8 +127,15 @@ extern ktime_t tick_nohz_get_sleep_length(void); | |||
127 | extern u64 get_cpu_idle_time_us(int cpu, u64 *last_update_time); | 127 | extern u64 get_cpu_idle_time_us(int cpu, u64 *last_update_time); |
128 | extern u64 get_cpu_iowait_time_us(int cpu, u64 *last_update_time); | 128 | extern u64 get_cpu_iowait_time_us(int cpu, u64 *last_update_time); |
129 | # else | 129 | # else |
130 | static inline void tick_nohz_stop_sched_tick(int inidle) { } | 130 | static inline void tick_nohz_stop_sched_tick(int inidle) |
131 | static inline void tick_nohz_restart_sched_tick(void) { } | 131 | { |
132 | if (inidle) | ||
133 | rcu_idle_enter(); | ||
134 | } | ||
135 | static inline void tick_nohz_restart_sched_tick(void) | ||
136 | { | ||
137 | rcu_idle_exit(); | ||
138 | } | ||
132 | static inline ktime_t tick_nohz_get_sleep_length(void) | 139 | static inline ktime_t tick_nohz_get_sleep_length(void) |
133 | { | 140 | { |
134 | ktime_t len = { .tv64 = NSEC_PER_SEC/HZ }; | 141 | ktime_t len = { .tv64 = NSEC_PER_SEC/HZ }; |