diff options
Diffstat (limited to 'include/linux/hrtimer.h')
-rw-r--r-- | include/linux/hrtimer.h | 16 |
1 files changed, 2 insertions, 14 deletions
diff --git a/include/linux/hrtimer.h b/include/linux/hrtimer.h index e7a8d3fa91d5..a036d058a249 100644 --- a/include/linux/hrtimer.h +++ b/include/linux/hrtimer.h | |||
@@ -165,6 +165,7 @@ enum hrtimer_base_type { | |||
165 | * struct hrtimer_cpu_base - the per cpu clock bases | 165 | * struct hrtimer_cpu_base - the per cpu clock bases |
166 | * @lock: lock protecting the base and associated clock bases | 166 | * @lock: lock protecting the base and associated clock bases |
167 | * and timers | 167 | * and timers |
168 | * @cpu: cpu number | ||
168 | * @active_bases: Bitfield to mark bases with active timers | 169 | * @active_bases: Bitfield to mark bases with active timers |
169 | * @clock_was_set: Indicates that clock was set from irq context. | 170 | * @clock_was_set: Indicates that clock was set from irq context. |
170 | * @expires_next: absolute time of the next event which was scheduled | 171 | * @expires_next: absolute time of the next event which was scheduled |
@@ -179,6 +180,7 @@ enum hrtimer_base_type { | |||
179 | */ | 180 | */ |
180 | struct hrtimer_cpu_base { | 181 | struct hrtimer_cpu_base { |
181 | raw_spinlock_t lock; | 182 | raw_spinlock_t lock; |
183 | unsigned int cpu; | ||
182 | unsigned int active_bases; | 184 | unsigned int active_bases; |
183 | unsigned int clock_was_set; | 185 | unsigned int clock_was_set; |
184 | #ifdef CONFIG_HIGH_RES_TIMERS | 186 | #ifdef CONFIG_HIGH_RES_TIMERS |
@@ -324,14 +326,6 @@ static inline void timerfd_clock_was_set(void) { } | |||
324 | #endif | 326 | #endif |
325 | extern void hrtimers_resume(void); | 327 | extern void hrtimers_resume(void); |
326 | 328 | ||
327 | extern ktime_t ktime_get(void); | ||
328 | extern ktime_t ktime_get_real(void); | ||
329 | extern ktime_t ktime_get_boottime(void); | ||
330 | extern ktime_t ktime_get_monotonic_offset(void); | ||
331 | extern ktime_t ktime_get_clocktai(void); | ||
332 | extern ktime_t ktime_get_update_offsets(ktime_t *offs_real, ktime_t *offs_boot, | ||
333 | ktime_t *offs_tai); | ||
334 | |||
335 | DECLARE_PER_CPU(struct tick_device, tick_cpu_device); | 329 | DECLARE_PER_CPU(struct tick_device, tick_cpu_device); |
336 | 330 | ||
337 | 331 | ||
@@ -452,12 +446,6 @@ extern void hrtimer_run_pending(void); | |||
452 | /* Bootup initialization: */ | 446 | /* Bootup initialization: */ |
453 | extern void __init hrtimers_init(void); | 447 | extern void __init hrtimers_init(void); |
454 | 448 | ||
455 | #if BITS_PER_LONG < 64 | ||
456 | extern u64 ktime_divns(const ktime_t kt, s64 div); | ||
457 | #else /* BITS_PER_LONG < 64 */ | ||
458 | # define ktime_divns(kt, div) (u64)((kt).tv64 / (div)) | ||
459 | #endif | ||
460 | |||
461 | /* Show pending timers: */ | 449 | /* Show pending timers: */ |
462 | extern void sysrq_timer_list_show(void); | 450 | extern void sysrq_timer_list_show(void); |
463 | 451 | ||