Lines Matching refs:new_base
195 static bool hrtimer_suitable_target(struct hrtimer *timer, struct hrtimer_clock_base *new_base, in hrtimer_suitable_target() argument
217 expires = ktime_sub(hrtimer_get_expires(timer), new_base->offset); in hrtimer_suitable_target()
219 return expires >= new_base->cpu_base->expires_next; in hrtimer_suitable_target()
254 struct hrtimer_clock_base *new_base; in switch_hrtimer_base() local
260 new_base = &new_cpu_base->clock_base[basenum]; in switch_hrtimer_base()
262 if (base != new_base) { in switch_hrtimer_base()
278 raw_spin_lock(&new_base->cpu_base->lock); in switch_hrtimer_base()
280 if (!hrtimer_suitable_target(timer, new_base, new_cpu_base, in switch_hrtimer_base()
282 raw_spin_unlock(&new_base->cpu_base->lock); in switch_hrtimer_base()
288 WRITE_ONCE(timer->base, new_base); in switch_hrtimer_base()
290 if (!hrtimer_suitable_target(timer, new_base, new_cpu_base, this_cpu_base)) { in switch_hrtimer_base()
295 return new_base; in switch_hrtimer_base()
1222 struct hrtimer_clock_base *new_base; in __hrtimer_start_range_ns() local
1264 new_base = switch_hrtimer_base(timer, base, in __hrtimer_start_range_ns()
1267 new_base = base; in __hrtimer_start_range_ns()
1270 first = enqueue_hrtimer(timer, new_base, mode); in __hrtimer_start_range_ns()
1286 struct hrtimer_cpu_base *new_cpu_base = new_base->cpu_base; in __hrtimer_start_range_ns()
1298 hrtimer_force_reprogram(new_base->cpu_base, 1); in __hrtimer_start_range_ns()
2249 struct hrtimer_clock_base *new_base) in migrate_hrtimer_list() argument
2265 timer->base = new_base; in migrate_hrtimer_list()
2274 enqueue_hrtimer(timer, new_base, HRTIMER_MODE_ABS); in migrate_hrtimer_list()
2281 struct hrtimer_cpu_base *old_base, *new_base; in hrtimers_cpu_dying() local
2284 new_base = &per_cpu(hrtimer_bases, ncpu); in hrtimers_cpu_dying()
2291 raw_spin_lock_nested(&new_base->lock, SINGLE_DEPTH_NESTING); in hrtimers_cpu_dying()
2295 &new_base->clock_base[i]); in hrtimers_cpu_dying()
2302 __hrtimer_get_next_event(new_base, HRTIMER_ACTIVE_SOFT); in hrtimers_cpu_dying()
2306 raw_spin_unlock(&new_base->lock); in hrtimers_cpu_dying()