Lines Matching refs:new_base
178 hrtimer_check_target(struct hrtimer *timer, struct hrtimer_clock_base *new_base) in hrtimer_check_target() argument
183 if (!new_base->cpu_base->hres_active) in hrtimer_check_target()
186 expires = ktime_sub(hrtimer_get_expires(timer), new_base->offset); in hrtimer_check_target()
187 return expires.tv64 <= new_base->cpu_base->expires_next.tv64; in hrtimer_check_target()
200 struct hrtimer_clock_base *new_base; in switch_hrtimer_base() local
208 new_base = &new_cpu_base->clock_base[basenum]; in switch_hrtimer_base()
210 if (base != new_base) { in switch_hrtimer_base()
226 raw_spin_lock(&new_base->cpu_base->lock); in switch_hrtimer_base()
228 if (cpu != this_cpu && hrtimer_check_target(timer, new_base)) { in switch_hrtimer_base()
230 raw_spin_unlock(&new_base->cpu_base->lock); in switch_hrtimer_base()
235 timer->base = new_base; in switch_hrtimer_base()
237 if (cpu != this_cpu && hrtimer_check_target(timer, new_base)) { in switch_hrtimer_base()
242 return new_base; in switch_hrtimer_base()
940 struct hrtimer_clock_base *base, *new_base; in __hrtimer_start_range_ns() local
966 new_base = switch_hrtimer_base(timer, base, mode & HRTIMER_MODE_PINNED); in __hrtimer_start_range_ns()
970 leftmost = enqueue_hrtimer(timer, new_base); in __hrtimer_start_range_ns()
982 wake_up_nohz_cpu(new_base->cpu_base->cpu); in __hrtimer_start_range_ns()
983 } else if (new_base->cpu_base == this_cpu_ptr(&hrtimer_bases) && in __hrtimer_start_range_ns()
984 hrtimer_reprogram(timer, new_base)) { in __hrtimer_start_range_ns()
996 raw_spin_unlock(&new_base->cpu_base->lock); in __hrtimer_start_range_ns()
1634 struct hrtimer_clock_base *new_base) in migrate_hrtimer_list() argument
1650 timer->base = new_base; in migrate_hrtimer_list()
1659 enqueue_hrtimer(timer, new_base); in migrate_hrtimer_list()
1668 struct hrtimer_cpu_base *old_base, *new_base; in migrate_hrtimers() local
1676 new_base = this_cpu_ptr(&hrtimer_bases); in migrate_hrtimers()
1681 raw_spin_lock(&new_base->lock); in migrate_hrtimers()
1686 &new_base->clock_base[i]); in migrate_hrtimers()
1690 raw_spin_unlock(&new_base->lock); in migrate_hrtimers()