| .. | .. |
|---|
| 31 | 31 | * Tick next event: keeps track of the tick time |
|---|
| 32 | 32 | */ |
|---|
| 33 | 33 | ktime_t tick_next_period; |
|---|
| 34 | | -ktime_t tick_period; |
|---|
| 35 | 34 | |
|---|
| 36 | 35 | /* |
|---|
| 37 | 36 | * tick_do_timer_cpu is a timer core internal variable which holds the CPU NR |
|---|
| .. | .. |
|---|
| 89 | 88 | write_seqcount_begin(&jiffies_seq); |
|---|
| 90 | 89 | |
|---|
| 91 | 90 | /* Keep track of the next tick event */ |
|---|
| 92 | | - tick_next_period = ktime_add(tick_next_period, tick_period); |
|---|
| 91 | + tick_next_period = ktime_add_ns(tick_next_period, TICK_NSEC); |
|---|
| 93 | 92 | |
|---|
| 94 | 93 | do_timer(1); |
|---|
| 95 | 94 | write_seqcount_end(&jiffies_seq); |
|---|
| .. | .. |
|---|
| 129 | 128 | * Setup the next period for devices, which do not have |
|---|
| 130 | 129 | * periodic mode: |
|---|
| 131 | 130 | */ |
|---|
| 132 | | - next = ktime_add(next, tick_period); |
|---|
| 131 | + next = ktime_add_ns(next, TICK_NSEC); |
|---|
| 133 | 132 | |
|---|
| 134 | 133 | if (!clockevents_program_event(dev, next, false)) |
|---|
| 135 | 134 | return; |
|---|
| .. | .. |
|---|
| 175 | 174 | for (;;) { |
|---|
| 176 | 175 | if (!clockevents_program_event(dev, next, false)) |
|---|
| 177 | 176 | return; |
|---|
| 178 | | - next = ktime_add(next, tick_period); |
|---|
| 177 | + next = ktime_add_ns(next, TICK_NSEC); |
|---|
| 179 | 178 | } |
|---|
| 180 | 179 | } |
|---|
| 181 | 180 | } |
|---|
| .. | .. |
|---|
| 220 | 219 | */ |
|---|
| 221 | 220 | if (tick_do_timer_cpu == TICK_DO_TIMER_BOOT) { |
|---|
| 222 | 221 | tick_do_timer_cpu = cpu; |
|---|
| 223 | | - |
|---|
| 224 | 222 | tick_next_period = ktime_get(); |
|---|
| 225 | | - tick_period = NSEC_PER_SEC / HZ; |
|---|
| 226 | 223 | #ifdef CONFIG_NO_HZ_FULL |
|---|
| 227 | 224 | /* |
|---|
| 228 | 225 | * The boot CPU may be nohz_full, in which case set |
|---|