aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/tick.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/linux/tick.h')
-rw-r--r--include/linux/tick.h11
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);
127extern u64 get_cpu_idle_time_us(int cpu, u64 *last_update_time); 127extern u64 get_cpu_idle_time_us(int cpu, u64 *last_update_time);
128extern u64 get_cpu_iowait_time_us(int cpu, u64 *last_update_time); 128extern u64 get_cpu_iowait_time_us(int cpu, u64 *last_update_time);
129# else 129# else
130static inline void tick_nohz_stop_sched_tick(int inidle) { } 130static inline void tick_nohz_stop_sched_tick(int inidle)
131static inline void tick_nohz_restart_sched_tick(void) { } 131{
132 if (inidle)
133 rcu_idle_enter();
134}
135static inline void tick_nohz_restart_sched_tick(void)
136{
137 rcu_idle_exit();
138}
132static inline ktime_t tick_nohz_get_sleep_length(void) 139static 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 };