Lines Matching refs:curdev
272 static bool tick_check_percpu(struct clock_event_device *curdev, in tick_check_percpu() argument
283 if (curdev && cpumask_equal(curdev->cpumask, cpumask_of(cpu))) in tick_check_percpu()
288 static bool tick_check_preferred(struct clock_event_device *curdev, in tick_check_preferred() argument
293 if (curdev && (curdev->features & CLOCK_EVT_FEAT_ONESHOT)) in tick_check_preferred()
303 return !curdev || in tick_check_preferred()
304 newdev->rating > curdev->rating || in tick_check_preferred()
305 !cpumask_equal(curdev->cpumask, newdev->cpumask); in tick_check_preferred()
312 bool tick_check_replacement(struct clock_event_device *curdev, in tick_check_replacement() argument
315 if (!tick_check_percpu(curdev, newdev, smp_processor_id())) in tick_check_replacement()
318 return tick_check_preferred(curdev, newdev); in tick_check_replacement()
327 struct clock_event_device *curdev; in tick_check_new_device() local
333 curdev = td->evtdev; in tick_check_new_device()
335 if (!tick_check_replacement(curdev, newdev)) in tick_check_new_device()
346 if (tick_is_broadcast_device(curdev)) { in tick_check_new_device()
347 clockevents_shutdown(curdev); in tick_check_new_device()
348 curdev = NULL; in tick_check_new_device()
350 clockevents_exchange_device(curdev, newdev); in tick_check_new_device()