diff options
Diffstat (limited to 'include/linux/tick.h')
-rw-r--r-- | include/linux/tick.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/include/linux/tick.h b/include/linux/tick.h index eda850ca757a..9c085dc12ae9 100644 --- a/include/linux/tick.h +++ b/include/linux/tick.h | |||
@@ -79,6 +79,9 @@ extern void __init tick_init(void); | |||
79 | extern int tick_is_oneshot_available(void); | 79 | extern int tick_is_oneshot_available(void); |
80 | extern struct tick_device *tick_get_device(int cpu); | 80 | extern struct tick_device *tick_get_device(int cpu); |
81 | 81 | ||
82 | extern void tick_freeze(void); | ||
83 | extern void tick_unfreeze(void); | ||
84 | |||
82 | # ifdef CONFIG_HIGH_RES_TIMERS | 85 | # ifdef CONFIG_HIGH_RES_TIMERS |
83 | extern int tick_init_highres(void); | 86 | extern int tick_init_highres(void); |
84 | extern int tick_program_event(ktime_t expires, int force); | 87 | extern int tick_program_event(ktime_t expires, int force); |
@@ -119,6 +122,8 @@ static inline int tick_oneshot_mode_active(void) { return 0; } | |||
119 | 122 | ||
120 | #else /* CONFIG_GENERIC_CLOCKEVENTS */ | 123 | #else /* CONFIG_GENERIC_CLOCKEVENTS */ |
121 | static inline void tick_init(void) { } | 124 | static inline void tick_init(void) { } |
125 | static inline void tick_freeze(void) { } | ||
126 | static inline void tick_unfreeze(void) { } | ||
122 | static inline void tick_cancel_sched_timer(int cpu) { } | 127 | static inline void tick_cancel_sched_timer(int cpu) { } |
123 | static inline void tick_clock_notify(void) { } | 128 | static inline void tick_clock_notify(void) { } |
124 | static inline int tick_check_oneshot_change(int allow_nohz) { return 0; } | 129 | static inline int tick_check_oneshot_change(int allow_nohz) { return 0; } |
@@ -226,5 +231,4 @@ static inline void tick_nohz_task_switch(struct task_struct *tsk) | |||
226 | __tick_nohz_task_switch(tsk); | 231 | __tick_nohz_task_switch(tsk); |
227 | } | 232 | } |
228 | 233 | ||
229 | |||
230 | #endif | 234 | #endif |