|
49 | 49 |
|
50 | 50 | #include "tick-internal.h" |
51 | 51 |
|
| 52 | +/* |
| 53 | + * The resolution of the clocks. The resolution value is returned in |
| 54 | + * the clock_getres() system call to give application programmers an |
| 55 | + * idea of the (in)accuracy of timers. Timer values are rounded up to |
| 56 | + * this resolution values. |
| 57 | + */ |
| 58 | +#define HIGH_RES_NSEC 1 |
| 59 | + |
52 | 60 | /* |
53 | 61 | * Masks for selecting the soft and hard context timers from |
54 | 62 | * cpu_base->active |
@@ -806,7 +814,7 @@ static void hrtimer_reprogram(struct hrtimer *timer, bool reprogram) |
806 | 814 | struct hrtimer_clock_base *base = timer->base; |
807 | 815 | ktime_t expires = ktime_sub(hrtimer_get_expires(timer), base->offset); |
808 | 816 |
|
809 | | - WARN_ON_ONCE(hrtimer_get_expires_tv64(timer) < 0); |
| 817 | + WARN_ON_ONCE(hrtimer_get_expires(timer) < 0); |
810 | 818 |
|
811 | 819 | /* |
812 | 820 | * CLOCK_REALTIME timer might be requested with an absolute |
@@ -1053,7 +1061,7 @@ u64 hrtimer_forward(struct hrtimer *timer, ktime_t now, ktime_t interval) |
1053 | 1061 |
|
1054 | 1062 | orun = ktime_divns(delta, incr); |
1055 | 1063 | hrtimer_add_expires_ns(timer, incr * orun); |
1056 | | - if (hrtimer_get_expires_tv64(timer) > now) |
| 1064 | + if (hrtimer_get_expires(timer) > now) |
1057 | 1065 | return orun; |
1058 | 1066 | /* |
1059 | 1067 | * This (and the ktime_add() below) is the |
@@ -1835,7 +1843,7 @@ static void __hrtimer_run_queues(struct hrtimer_cpu_base *cpu_base, ktime_t now, |
1835 | 1843 | * are right-of a not yet expired timer, because that |
1836 | 1844 | * timer will have to trigger a wakeup anyway. |
1837 | 1845 | */ |
1838 | | - if (basenow < hrtimer_get_softexpires_tv64(timer)) |
| 1846 | + if (basenow < hrtimer_get_softexpires(timer)) |
1839 | 1847 | break; |
1840 | 1848 |
|
1841 | 1849 | __run_hrtimer(cpu_base, base, timer, &basenow, flags); |
|
0 commit comments