Lines Matching refs:new_base
165 hrtimer_check_target(struct hrtimer *timer, struct hrtimer_clock_base *new_base) in hrtimer_check_target() argument
170 if (!new_base->cpu_base->hres_active) in hrtimer_check_target()
173 expires = ktime_sub(hrtimer_get_expires(timer), new_base->offset); in hrtimer_check_target()
174 return expires.tv64 <= new_base->cpu_base->expires_next.tv64; in hrtimer_check_target()
215 struct hrtimer_clock_base *new_base; in switch_hrtimer_base() local
221 new_base = &new_cpu_base->clock_base[basenum]; in switch_hrtimer_base()
223 if (base != new_base) { in switch_hrtimer_base()
239 raw_spin_lock(&new_base->cpu_base->lock); in switch_hrtimer_base()
242 hrtimer_check_target(timer, new_base)) { in switch_hrtimer_base()
243 raw_spin_unlock(&new_base->cpu_base->lock); in switch_hrtimer_base()
249 timer->base = new_base; in switch_hrtimer_base()
252 hrtimer_check_target(timer, new_base)) { in switch_hrtimer_base()
257 return new_base; in switch_hrtimer_base()
984 struct hrtimer_clock_base *base, *new_base; in hrtimer_start_range_ns() local
1001 new_base = switch_hrtimer_base(timer, base, mode & HRTIMER_MODE_PINNED); in hrtimer_start_range_ns()
1005 leftmost = enqueue_hrtimer(timer, new_base); in hrtimer_start_range_ns()
1014 if (new_base->cpu_base->nohz_active) in hrtimer_start_range_ns()
1015 wake_up_nohz_cpu(new_base->cpu_base->cpu); in hrtimer_start_range_ns()
1017 hrtimer_reprogram(timer, new_base); in hrtimer_start_range_ns()
1620 struct hrtimer_clock_base *new_base) in migrate_hrtimer_list() argument
1636 timer->base = new_base; in migrate_hrtimer_list()
1645 enqueue_hrtimer(timer, new_base); in migrate_hrtimer_list()
1651 struct hrtimer_cpu_base *old_base, *new_base; in migrate_hrtimers() local
1659 new_base = this_cpu_ptr(&hrtimer_bases); in migrate_hrtimers()
1664 raw_spin_lock(&new_base->lock); in migrate_hrtimers()
1669 &new_base->clock_base[i]); in migrate_hrtimers()
1673 raw_spin_unlock(&new_base->lock); in migrate_hrtimers()