1c0a31329SThomas Gleixner /* 2c0a31329SThomas Gleixner * include/linux/hrtimer.h 3c0a31329SThomas Gleixner * 4c0a31329SThomas Gleixner * hrtimers - High-resolution kernel timers 5c0a31329SThomas Gleixner * 6c0a31329SThomas Gleixner * Copyright(C) 2005, Thomas Gleixner <[email protected]> 7c0a31329SThomas Gleixner * Copyright(C) 2005, Red Hat, Inc., Ingo Molnar 8c0a31329SThomas Gleixner * 9c0a31329SThomas Gleixner * data type definitions, declarations, prototypes 10c0a31329SThomas Gleixner * 11c0a31329SThomas Gleixner * Started by: Thomas Gleixner and Ingo Molnar 12c0a31329SThomas Gleixner * 13c0a31329SThomas Gleixner * For licencing details see kernel-base/COPYING 14c0a31329SThomas Gleixner */ 15c0a31329SThomas Gleixner #ifndef _LINUX_HRTIMER_H 16c0a31329SThomas Gleixner #define _LINUX_HRTIMER_H 17c0a31329SThomas Gleixner 18c0a31329SThomas Gleixner #include <linux/rbtree.h> 19c0a31329SThomas Gleixner #include <linux/ktime.h> 20c0a31329SThomas Gleixner #include <linux/init.h> 21c0a31329SThomas Gleixner #include <linux/list.h> 22c0a31329SThomas Gleixner #include <linux/wait.h> 23c0a31329SThomas Gleixner 243c8aa39dSThomas Gleixner struct hrtimer_clock_base; 253c8aa39dSThomas Gleixner struct hrtimer_cpu_base; 263c8aa39dSThomas Gleixner 27c0a31329SThomas Gleixner /* 28c0a31329SThomas Gleixner * Mode arguments of xxx_hrtimer functions: 29c0a31329SThomas Gleixner */ 30c0a31329SThomas Gleixner enum hrtimer_mode { 31c9cb2e3dSThomas Gleixner HRTIMER_MODE_ABS, /* Time value is absolute */ 32c9cb2e3dSThomas Gleixner HRTIMER_MODE_REL, /* Time value is relative to now */ 33c0a31329SThomas Gleixner }; 34c0a31329SThomas Gleixner 35c9cb2e3dSThomas Gleixner /* 36c9cb2e3dSThomas Gleixner * Return values for the callback function 37c9cb2e3dSThomas Gleixner */ 38c0a31329SThomas Gleixner enum hrtimer_restart { 39c9cb2e3dSThomas Gleixner HRTIMER_NORESTART, /* Timer is not restarted */ 40c9cb2e3dSThomas Gleixner HRTIMER_RESTART, /* Timer must be restarted */ 41c0a31329SThomas Gleixner }; 42c0a31329SThomas Gleixner 43303e967fSThomas Gleixner /* 4454cdfdb4SThomas Gleixner * hrtimer callback modes: 4554cdfdb4SThomas Gleixner * 4654cdfdb4SThomas Gleixner * HRTIMER_CB_SOFTIRQ: Callback must run in softirq context 4754cdfdb4SThomas Gleixner * HRTIMER_CB_IRQSAFE: Callback may run in hardirq context 4854cdfdb4SThomas Gleixner * HRTIMER_CB_IRQSAFE_NO_RESTART: Callback may run in hardirq context and 4954cdfdb4SThomas Gleixner * does not restart the timer 5054cdfdb4SThomas Gleixner * HRTIMER_CB_IRQSAFE_NO_SOFTIRQ: Callback must run in softirq context 5154cdfdb4SThomas Gleixner * Special mode for tick emultation 5254cdfdb4SThomas Gleixner */ 5354cdfdb4SThomas Gleixner enum hrtimer_cb_mode { 5454cdfdb4SThomas Gleixner HRTIMER_CB_SOFTIRQ, 5554cdfdb4SThomas Gleixner HRTIMER_CB_IRQSAFE, 5654cdfdb4SThomas Gleixner HRTIMER_CB_IRQSAFE_NO_RESTART, 5754cdfdb4SThomas Gleixner HRTIMER_CB_IRQSAFE_NO_SOFTIRQ, 5854cdfdb4SThomas Gleixner }; 5954cdfdb4SThomas Gleixner 6054cdfdb4SThomas Gleixner /* 6154cdfdb4SThomas Gleixner * Values to track state of the timer 62303e967fSThomas Gleixner * 63303e967fSThomas Gleixner * Possible states: 64303e967fSThomas Gleixner * 65303e967fSThomas Gleixner * 0x00 inactive 66303e967fSThomas Gleixner * 0x01 enqueued into rbtree 67303e967fSThomas Gleixner * 0x02 callback function running 6854cdfdb4SThomas Gleixner * 0x04 callback pending (high resolution mode) 6954cdfdb4SThomas Gleixner * 7054cdfdb4SThomas Gleixner * Special case: 71303e967fSThomas Gleixner * 0x03 callback function running and enqueued 72303e967fSThomas Gleixner * (was requeued on another CPU) 73303e967fSThomas Gleixner * The "callback function running and enqueued" status is only possible on 74303e967fSThomas Gleixner * SMP. It happens for example when a posix timer expired and the callback 75303e967fSThomas Gleixner * queued a signal. Between dropping the lock which protects the posix timer 76303e967fSThomas Gleixner * and reacquiring the base lock of the hrtimer, another CPU can deliver the 77303e967fSThomas Gleixner * signal and rearm the timer. We have to preserve the callback running state, 78303e967fSThomas Gleixner * as otherwise the timer could be removed before the softirq code finishes the 79303e967fSThomas Gleixner * the handling of the timer. 80303e967fSThomas Gleixner * 81303e967fSThomas Gleixner * The HRTIMER_STATE_ENQUEUE bit is always or'ed to the current state to 82303e967fSThomas Gleixner * preserve the HRTIMER_STATE_CALLBACK bit in the above scenario. 83303e967fSThomas Gleixner * 84303e967fSThomas Gleixner * All state transitions are protected by cpu_base->lock. 85303e967fSThomas Gleixner */ 86303e967fSThomas Gleixner #define HRTIMER_STATE_INACTIVE 0x00 87303e967fSThomas Gleixner #define HRTIMER_STATE_ENQUEUED 0x01 88303e967fSThomas Gleixner #define HRTIMER_STATE_CALLBACK 0x02 8954cdfdb4SThomas Gleixner #define HRTIMER_STATE_PENDING 0x04 90303e967fSThomas Gleixner 91c0a31329SThomas Gleixner /** 92c0a31329SThomas Gleixner * struct hrtimer - the basic hrtimer structure 93c0a31329SThomas Gleixner * @node: red black tree node for time ordered insertion 94c0a31329SThomas Gleixner * @expires: the absolute expiry time in the hrtimers internal 95c0a31329SThomas Gleixner * representation. The time is related to the clock on 96c0a31329SThomas Gleixner * which the timer is based. 97c0a31329SThomas Gleixner * @function: timer expiry callback function 98c0a31329SThomas Gleixner * @base: pointer to the timer base (per cpu and per clock) 99303e967fSThomas Gleixner * @state: state information (See bit values above) 10054cdfdb4SThomas Gleixner * @cb_mode: high resolution timer feature to select the callback execution 10154cdfdb4SThomas Gleixner * mode 10254cdfdb4SThomas Gleixner * @cb_entry: list head to enqueue an expired timer into the callback list 10354cdfdb4SThomas Gleixner * @start_site: timer statistics field to store the site where the timer 10454cdfdb4SThomas Gleixner * was started 10554cdfdb4SThomas Gleixner * @start_comm: timer statistics field to store the name of the process which 10654cdfdb4SThomas Gleixner * started the timer 10754cdfdb4SThomas Gleixner * @start_pid: timer statistics field to store the pid of the task which 10854cdfdb4SThomas Gleixner * started the timer 109c0a31329SThomas Gleixner * 11054cdfdb4SThomas Gleixner * The hrtimer structure must be initialized by hrtimer_init() 111c0a31329SThomas Gleixner */ 112c0a31329SThomas Gleixner struct hrtimer { 113c0a31329SThomas Gleixner struct rb_node node; 114c0a31329SThomas Gleixner ktime_t expires; 115c9cb2e3dSThomas Gleixner enum hrtimer_restart (*function)(struct hrtimer *); 1163c8aa39dSThomas Gleixner struct hrtimer_clock_base *base; 117303e967fSThomas Gleixner unsigned long state; 11854cdfdb4SThomas Gleixner #ifdef CONFIG_HIGH_RES_TIMERS 11954cdfdb4SThomas Gleixner enum hrtimer_cb_mode cb_mode; 12054cdfdb4SThomas Gleixner struct list_head cb_entry; 12154cdfdb4SThomas Gleixner #endif 122*82f67cd9SIngo Molnar #ifdef CONFIG_TIMER_STATS 123*82f67cd9SIngo Molnar void *start_site; 124*82f67cd9SIngo Molnar char start_comm[16]; 125*82f67cd9SIngo Molnar int start_pid; 126*82f67cd9SIngo Molnar #endif 127c0a31329SThomas Gleixner }; 128c0a31329SThomas Gleixner 129c0a31329SThomas Gleixner /** 13000362e33SThomas Gleixner * struct hrtimer_sleeper - simple sleeper structure 13100362e33SThomas Gleixner * @timer: embedded timer structure 13200362e33SThomas Gleixner * @task: task to wake up 13300362e33SThomas Gleixner * 13400362e33SThomas Gleixner * task is set to NULL, when the timer expires. 13500362e33SThomas Gleixner */ 13600362e33SThomas Gleixner struct hrtimer_sleeper { 13700362e33SThomas Gleixner struct hrtimer timer; 13800362e33SThomas Gleixner struct task_struct *task; 13900362e33SThomas Gleixner }; 14000362e33SThomas Gleixner 14100362e33SThomas Gleixner /** 142c0a31329SThomas Gleixner * struct hrtimer_base - the timer base for a specific clock 1433c8aa39dSThomas Gleixner * @index: clock type index for per_cpu support when moving a 1443c8aa39dSThomas Gleixner * timer to a base on another cpu. 145c0a31329SThomas Gleixner * @active: red black tree root node for the active timers 146288867ecSThomas Gleixner * @first: pointer to the timer node which expires first 147c0a31329SThomas Gleixner * @resolution: the resolution of the clock, in nanoseconds 148c0a31329SThomas Gleixner * @get_time: function to retrieve the current time of the clock 149a580290cSMartin Waitz * @get_softirq_time: function to retrieve the current time from the softirq 15092127c7aSThomas Gleixner * @softirq_time: the time when running the hrtimer queue in the softirq 15154cdfdb4SThomas Gleixner * @cb_pending: list of timers where the callback is pending 15254cdfdb4SThomas Gleixner * @offset: offset of this clock to the monotonic base 15354cdfdb4SThomas Gleixner * @reprogram: function to reprogram the timer event 154c0a31329SThomas Gleixner */ 1553c8aa39dSThomas Gleixner struct hrtimer_clock_base { 1563c8aa39dSThomas Gleixner struct hrtimer_cpu_base *cpu_base; 157c0a31329SThomas Gleixner clockid_t index; 158c0a31329SThomas Gleixner struct rb_root active; 159288867ecSThomas Gleixner struct rb_node *first; 160e2787630SThomas Gleixner ktime_t resolution; 161c0a31329SThomas Gleixner ktime_t (*get_time)(void); 16292127c7aSThomas Gleixner ktime_t (*get_softirq_time)(void); 16392127c7aSThomas Gleixner ktime_t softirq_time; 16454cdfdb4SThomas Gleixner #ifdef CONFIG_HIGH_RES_TIMERS 16554cdfdb4SThomas Gleixner ktime_t offset; 16654cdfdb4SThomas Gleixner int (*reprogram)(struct hrtimer *t, 16754cdfdb4SThomas Gleixner struct hrtimer_clock_base *b, 16854cdfdb4SThomas Gleixner ktime_t n); 16954cdfdb4SThomas Gleixner #endif 1703c8aa39dSThomas Gleixner }; 1713c8aa39dSThomas Gleixner 1723c8aa39dSThomas Gleixner #define HRTIMER_MAX_CLOCK_BASES 2 1733c8aa39dSThomas Gleixner 1743c8aa39dSThomas Gleixner /* 1753c8aa39dSThomas Gleixner * struct hrtimer_cpu_base - the per cpu clock bases 1763c8aa39dSThomas Gleixner * @lock: lock protecting the base and associated clock bases 1773c8aa39dSThomas Gleixner * and timers 1783c8aa39dSThomas Gleixner * @lock_key: the lock_class_key for use with lockdep 1793c8aa39dSThomas Gleixner * @clock_base: array of clock bases for this cpu 1803c8aa39dSThomas Gleixner * @curr_timer: the timer which is executing a callback right now 18154cdfdb4SThomas Gleixner * @expires_next: absolute time of the next event which was scheduled 18254cdfdb4SThomas Gleixner * via clock_set_next_event() 18354cdfdb4SThomas Gleixner * @hres_active: State of high resolution mode 18454cdfdb4SThomas Gleixner * @check_clocks: Indictator, when set evaluate time source and clock 18554cdfdb4SThomas Gleixner * event devices whether high resolution mode can be 18654cdfdb4SThomas Gleixner * activated. 18754cdfdb4SThomas Gleixner * @cb_pending: Expired timers are moved from the rbtree to this 18854cdfdb4SThomas Gleixner * list in the timer interrupt. The list is processed 18954cdfdb4SThomas Gleixner * in the softirq. 19054cdfdb4SThomas Gleixner * @nr_events: Total number of timer interrupt events 1913c8aa39dSThomas Gleixner */ 1923c8aa39dSThomas Gleixner struct hrtimer_cpu_base { 1933c8aa39dSThomas Gleixner spinlock_t lock; 19454365524SIngo Molnar struct lock_class_key lock_key; 1953c8aa39dSThomas Gleixner struct hrtimer_clock_base clock_base[HRTIMER_MAX_CLOCK_BASES]; 19654cdfdb4SThomas Gleixner #ifdef CONFIG_HIGH_RES_TIMERS 19754cdfdb4SThomas Gleixner ktime_t expires_next; 19854cdfdb4SThomas Gleixner int hres_active; 19954cdfdb4SThomas Gleixner struct list_head cb_pending; 20054cdfdb4SThomas Gleixner unsigned long nr_events; 20154cdfdb4SThomas Gleixner #endif 202c0a31329SThomas Gleixner }; 203c0a31329SThomas Gleixner 20454cdfdb4SThomas Gleixner #ifdef CONFIG_HIGH_RES_TIMERS 20554cdfdb4SThomas Gleixner struct clock_event_device; 20654cdfdb4SThomas Gleixner 20754cdfdb4SThomas Gleixner extern void clock_was_set(void); 20854cdfdb4SThomas Gleixner extern void hrtimer_interrupt(struct clock_event_device *dev); 20954cdfdb4SThomas Gleixner 21054cdfdb4SThomas Gleixner /* 21154cdfdb4SThomas Gleixner * In high resolution mode the time reference must be read accurate 21254cdfdb4SThomas Gleixner */ 21354cdfdb4SThomas Gleixner static inline ktime_t hrtimer_cb_get_time(struct hrtimer *timer) 21454cdfdb4SThomas Gleixner { 21554cdfdb4SThomas Gleixner return timer->base->get_time(); 21654cdfdb4SThomas Gleixner } 21754cdfdb4SThomas Gleixner 21854cdfdb4SThomas Gleixner /* 21954cdfdb4SThomas Gleixner * The resolution of the clocks. The resolution value is returned in 22054cdfdb4SThomas Gleixner * the clock_getres() system call to give application programmers an 22154cdfdb4SThomas Gleixner * idea of the (in)accuracy of timers. Timer values are rounded up to 22254cdfdb4SThomas Gleixner * this resolution values. 22354cdfdb4SThomas Gleixner */ 22454cdfdb4SThomas Gleixner # define KTIME_HIGH_RES (ktime_t) { .tv64 = 1 } 22554cdfdb4SThomas Gleixner # define KTIME_MONOTONIC_RES KTIME_HIGH_RES 22654cdfdb4SThomas Gleixner 22754cdfdb4SThomas Gleixner #else 22854cdfdb4SThomas Gleixner 22954cdfdb4SThomas Gleixner # define KTIME_MONOTONIC_RES KTIME_LOW_RES 23054cdfdb4SThomas Gleixner 231becf8b5dSThomas Gleixner /* 232becf8b5dSThomas Gleixner * clock_was_set() is a NOP for non- high-resolution systems. The 233becf8b5dSThomas Gleixner * time-sorted order guarantees that a timer does not expire early and 234becf8b5dSThomas Gleixner * is expired in the next softirq when the clock was advanced. 235becf8b5dSThomas Gleixner */ 23654cdfdb4SThomas Gleixner static inline void clock_was_set(void) { } 23754cdfdb4SThomas Gleixner 23854cdfdb4SThomas Gleixner /* 23954cdfdb4SThomas Gleixner * In non high resolution mode the time reference is taken from 24054cdfdb4SThomas Gleixner * the base softirq time variable. 24154cdfdb4SThomas Gleixner */ 24254cdfdb4SThomas Gleixner static inline ktime_t hrtimer_cb_get_time(struct hrtimer *timer) 24354cdfdb4SThomas Gleixner { 24454cdfdb4SThomas Gleixner return timer->base->softirq_time; 24554cdfdb4SThomas Gleixner } 24654cdfdb4SThomas Gleixner 24754cdfdb4SThomas Gleixner #endif 24854cdfdb4SThomas Gleixner 249d316c57fSThomas Gleixner extern ktime_t ktime_get(void); 250d316c57fSThomas Gleixner extern ktime_t ktime_get_real(void); 251becf8b5dSThomas Gleixner 252c0a31329SThomas Gleixner /* Exported timer functions: */ 253c0a31329SThomas Gleixner 254c0a31329SThomas Gleixner /* Initialize timers: */ 2557978672cSGeorge Anzinger extern void hrtimer_init(struct hrtimer *timer, clockid_t which_clock, 2567978672cSGeorge Anzinger enum hrtimer_mode mode); 257c0a31329SThomas Gleixner 258c0a31329SThomas Gleixner /* Basic timer operations: */ 259c0a31329SThomas Gleixner extern int hrtimer_start(struct hrtimer *timer, ktime_t tim, 260c0a31329SThomas Gleixner const enum hrtimer_mode mode); 261c0a31329SThomas Gleixner extern int hrtimer_cancel(struct hrtimer *timer); 262c0a31329SThomas Gleixner extern int hrtimer_try_to_cancel(struct hrtimer *timer); 263c0a31329SThomas Gleixner 264c9cb2e3dSThomas Gleixner static inline int hrtimer_restart(struct hrtimer *timer) 265c9cb2e3dSThomas Gleixner { 266c9cb2e3dSThomas Gleixner return hrtimer_start(timer, timer->expires, HRTIMER_MODE_ABS); 267c9cb2e3dSThomas Gleixner } 268c0a31329SThomas Gleixner 269c0a31329SThomas Gleixner /* Query timers: */ 270c0a31329SThomas Gleixner extern ktime_t hrtimer_get_remaining(const struct hrtimer *timer); 271c0a31329SThomas Gleixner extern int hrtimer_get_res(const clockid_t which_clock, struct timespec *tp); 272c0a31329SThomas Gleixner 27369239749STony Lindgren extern ktime_t hrtimer_get_next_event(void); 27469239749STony Lindgren 275303e967fSThomas Gleixner /* 276303e967fSThomas Gleixner * A timer is active, when it is enqueued into the rbtree or the callback 277303e967fSThomas Gleixner * function is running. 278303e967fSThomas Gleixner */ 279c0a31329SThomas Gleixner static inline int hrtimer_active(const struct hrtimer *timer) 280c0a31329SThomas Gleixner { 281303e967fSThomas Gleixner return timer->state != HRTIMER_STATE_INACTIVE; 282c0a31329SThomas Gleixner } 283c0a31329SThomas Gleixner 28454cdfdb4SThomas Gleixner /* 28554cdfdb4SThomas Gleixner * Helper function to check, whether the timer is on one of the queues 28654cdfdb4SThomas Gleixner */ 28754cdfdb4SThomas Gleixner static inline int hrtimer_is_queued(struct hrtimer *timer) 28854cdfdb4SThomas Gleixner { 28954cdfdb4SThomas Gleixner return timer->state & 29054cdfdb4SThomas Gleixner (HRTIMER_STATE_ENQUEUED | HRTIMER_STATE_PENDING); 29154cdfdb4SThomas Gleixner } 29254cdfdb4SThomas Gleixner 293c0a31329SThomas Gleixner /* Forward a hrtimer so it expires after now: */ 29444f21475SRoman Zippel extern unsigned long 29544f21475SRoman Zippel hrtimer_forward(struct hrtimer *timer, ktime_t now, ktime_t interval); 296c0a31329SThomas Gleixner 29710c94ec1SThomas Gleixner /* Precise sleep: */ 29810c94ec1SThomas Gleixner extern long hrtimer_nanosleep(struct timespec *rqtp, 29910c94ec1SThomas Gleixner struct timespec __user *rmtp, 30010c94ec1SThomas Gleixner const enum hrtimer_mode mode, 30110c94ec1SThomas Gleixner const clockid_t clockid); 3021711ef38SToyo Abe extern long hrtimer_nanosleep_restart(struct restart_block *restart_block); 30310c94ec1SThomas Gleixner 30400362e33SThomas Gleixner extern void hrtimer_init_sleeper(struct hrtimer_sleeper *sl, 30500362e33SThomas Gleixner struct task_struct *tsk); 30600362e33SThomas Gleixner 307c0a31329SThomas Gleixner /* Soft interrupt function to run the hrtimer queues: */ 308c0a31329SThomas Gleixner extern void hrtimer_run_queues(void); 309c0a31329SThomas Gleixner 310c0a31329SThomas Gleixner /* Bootup initialization: */ 311c0a31329SThomas Gleixner extern void __init hrtimers_init(void); 312c0a31329SThomas Gleixner 31379bf2bb3SThomas Gleixner #if BITS_PER_LONG < 64 31479bf2bb3SThomas Gleixner extern unsigned long ktime_divns(const ktime_t kt, s64 div); 31579bf2bb3SThomas Gleixner #else /* BITS_PER_LONG < 64 */ 31679bf2bb3SThomas Gleixner # define ktime_divns(kt, div) (unsigned long)((kt).tv64 / (div)) 31779bf2bb3SThomas Gleixner #endif 31879bf2bb3SThomas Gleixner 319*82f67cd9SIngo Molnar /* 320*82f67cd9SIngo Molnar * Timer-statistics info: 321*82f67cd9SIngo Molnar */ 322*82f67cd9SIngo Molnar #ifdef CONFIG_TIMER_STATS 323*82f67cd9SIngo Molnar 324*82f67cd9SIngo Molnar extern void timer_stats_update_stats(void *timer, pid_t pid, void *startf, 325*82f67cd9SIngo Molnar void *timerf, char * comm); 326*82f67cd9SIngo Molnar 327*82f67cd9SIngo Molnar static inline void timer_stats_account_hrtimer(struct hrtimer *timer) 328*82f67cd9SIngo Molnar { 329*82f67cd9SIngo Molnar timer_stats_update_stats(timer, timer->start_pid, timer->start_site, 330*82f67cd9SIngo Molnar timer->function, timer->start_comm); 331*82f67cd9SIngo Molnar } 332*82f67cd9SIngo Molnar 333*82f67cd9SIngo Molnar extern void __timer_stats_hrtimer_set_start_info(struct hrtimer *timer, 334*82f67cd9SIngo Molnar void *addr); 335*82f67cd9SIngo Molnar 336*82f67cd9SIngo Molnar static inline void timer_stats_hrtimer_set_start_info(struct hrtimer *timer) 337*82f67cd9SIngo Molnar { 338*82f67cd9SIngo Molnar __timer_stats_hrtimer_set_start_info(timer, __builtin_return_address(0)); 339*82f67cd9SIngo Molnar } 340*82f67cd9SIngo Molnar 341*82f67cd9SIngo Molnar static inline void timer_stats_hrtimer_clear_start_info(struct hrtimer *timer) 342*82f67cd9SIngo Molnar { 343*82f67cd9SIngo Molnar timer->start_site = NULL; 344*82f67cd9SIngo Molnar } 345*82f67cd9SIngo Molnar #else 346*82f67cd9SIngo Molnar static inline void timer_stats_account_hrtimer(struct hrtimer *timer) 347*82f67cd9SIngo Molnar { 348*82f67cd9SIngo Molnar } 349*82f67cd9SIngo Molnar 350*82f67cd9SIngo Molnar static inline void timer_stats_hrtimer_set_start_info(struct hrtimer *timer) 351*82f67cd9SIngo Molnar { 352*82f67cd9SIngo Molnar } 353*82f67cd9SIngo Molnar 354*82f67cd9SIngo Molnar static inline void timer_stats_hrtimer_clear_start_info(struct hrtimer *timer) 355*82f67cd9SIngo Molnar { 356*82f67cd9SIngo Molnar } 357*82f67cd9SIngo Molnar #endif 358*82f67cd9SIngo Molnar 359c0a31329SThomas Gleixner #endif 360