]> git.ipfire.org Git - thirdparty/linux.git/blobdiff - include/linux/tick.h
PM / sleep: Make it possible to quiesce timers during suspend-to-idle
[thirdparty/linux.git] / include / linux / tick.h
index eda850ca757a8998edb64c71295fb4ce05dfc17b..9c085dc12ae92626e3d6ae831df435a82f188c08 100644 (file)
@@ -79,6 +79,9 @@ extern void __init tick_init(void);
 extern int tick_is_oneshot_available(void);
 extern struct tick_device *tick_get_device(int cpu);
 
+extern void tick_freeze(void);
+extern void tick_unfreeze(void);
+
 # ifdef CONFIG_HIGH_RES_TIMERS
 extern int tick_init_highres(void);
 extern int tick_program_event(ktime_t expires, int force);
@@ -119,6 +122,8 @@ static inline int tick_oneshot_mode_active(void) { return 0; }
 
 #else /* CONFIG_GENERIC_CLOCKEVENTS */
 static inline void tick_init(void) { }
+static inline void tick_freeze(void) { }
+static inline void tick_unfreeze(void) { }
 static inline void tick_cancel_sched_timer(int cpu) { }
 static inline void tick_clock_notify(void) { }
 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)
                __tick_nohz_task_switch(tsk);
 }
 
-
 #endif