Lines Matching refs:new_base

177 hrtimer_check_target(struct hrtimer *timer, struct hrtimer_clock_base *new_base)  in hrtimer_check_target()  argument
182 if (!new_base->cpu_base->hres_active) in hrtimer_check_target()
185 expires = ktime_sub(hrtimer_get_expires(timer), new_base->offset); in hrtimer_check_target()
186 return expires.tv64 <= new_base->cpu_base->expires_next.tv64; in hrtimer_check_target()
199 struct hrtimer_clock_base *new_base; in switch_hrtimer_base() local
207 new_base = &new_cpu_base->clock_base[basenum]; in switch_hrtimer_base()
209 if (base != new_base) { in switch_hrtimer_base()
225 raw_spin_lock(&new_base->cpu_base->lock); in switch_hrtimer_base()
227 if (cpu != this_cpu && hrtimer_check_target(timer, new_base)) { in switch_hrtimer_base()
229 raw_spin_unlock(&new_base->cpu_base->lock); in switch_hrtimer_base()
234 timer->base = new_base; in switch_hrtimer_base()
236 if (cpu != this_cpu && hrtimer_check_target(timer, new_base)) { in switch_hrtimer_base()
241 return new_base; in switch_hrtimer_base()
979 struct hrtimer_clock_base *base, *new_base; in __hrtimer_start_range_ns() local
1005 new_base = switch_hrtimer_base(timer, base, mode & HRTIMER_MODE_PINNED); in __hrtimer_start_range_ns()
1009 leftmost = enqueue_hrtimer(timer, new_base); in __hrtimer_start_range_ns()
1017 if (leftmost && new_base->cpu_base == &__get_cpu_var(hrtimer_bases) in __hrtimer_start_range_ns()
1018 && hrtimer_enqueue_reprogram(timer, new_base)) { in __hrtimer_start_range_ns()
1024 raw_spin_unlock(&new_base->cpu_base->lock); in __hrtimer_start_range_ns()
1681 struct hrtimer_clock_base *new_base) in migrate_hrtimer_list() argument
1697 timer->base = new_base; in migrate_hrtimer_list()
1706 enqueue_hrtimer(timer, new_base); in migrate_hrtimer_list()
1715 struct hrtimer_cpu_base *old_base, *new_base; in migrate_hrtimers() local
1723 new_base = &__get_cpu_var(hrtimer_bases); in migrate_hrtimers()
1728 raw_spin_lock(&new_base->lock); in migrate_hrtimers()
1733 &new_base->clock_base[i]); in migrate_hrtimers()
1737 raw_spin_unlock(&new_base->lock); in migrate_hrtimers()