Lines Matching defs:new_base
215 static bool hrtimer_suitable_target(struct hrtimer *timer, struct hrtimer_clock_base *new_base,
237 expires = ktime_sub(hrtimer_get_expires(timer), new_base->offset);
239 return expires >= new_base->cpu_base->expires_next;
273 struct hrtimer_clock_base *new_base;
279 new_base = &new_cpu_base->clock_base[basenum];
281 if (base != new_base) {
283 * We are trying to move timer to new_base. However we can't
296 raw_spin_lock(&new_base->cpu_base->lock);
298 if (!hrtimer_suitable_target(timer, new_base, new_cpu_base, this_cpu_base)) {
299 raw_spin_unlock(&new_base->cpu_base->lock);
305 WRITE_ONCE(timer->base, new_base);
307 if (!hrtimer_suitable_target(timer, new_base, new_cpu_base, this_cpu_base)) {
312 return new_base;
2545 struct hrtimer_clock_base *new_base)
2561 timer->base = new_base;
2570 enqueue_hrtimer(timer, new_base, HRTIMER_MODE_ABS, true);
2577 struct hrtimer_cpu_base *old_base, *new_base;
2580 new_base = &per_cpu(hrtimer_bases, ncpu);
2587 raw_spin_lock_nested(&new_base->lock, SINGLE_DEPTH_NESTING);
2590 migrate_hrtimer_list(&old_base->clock_base[i], &new_base->clock_base[i]);
2595 raw_spin_unlock(&new_base->lock);