Lines Matching refs:curdev
236 static bool tick_check_percpu(struct clock_event_device *curdev, in tick_check_percpu() argument
247 if (curdev && cpumask_equal(curdev->cpumask, cpumask_of(cpu))) in tick_check_percpu()
252 static bool tick_check_preferred(struct clock_event_device *curdev, in tick_check_preferred() argument
257 if (curdev && (curdev->features & CLOCK_EVT_FEAT_ONESHOT)) in tick_check_preferred()
267 return !curdev || in tick_check_preferred()
268 newdev->rating > curdev->rating || in tick_check_preferred()
269 !cpumask_equal(curdev->cpumask, newdev->cpumask); in tick_check_preferred()
276 bool tick_check_replacement(struct clock_event_device *curdev, in tick_check_replacement() argument
279 if (!tick_check_percpu(curdev, newdev, smp_processor_id())) in tick_check_replacement()
282 return tick_check_preferred(curdev, newdev); in tick_check_replacement()
291 struct clock_event_device *curdev; in tick_check_new_device() local
300 curdev = td->evtdev; in tick_check_new_device()
303 if (!tick_check_percpu(curdev, newdev, cpu)) in tick_check_new_device()
307 if (!tick_check_preferred(curdev, newdev)) in tick_check_new_device()
318 if (tick_is_broadcast_device(curdev)) { in tick_check_new_device()
319 clockevents_shutdown(curdev); in tick_check_new_device()
320 curdev = NULL; in tick_check_new_device()
322 clockevents_exchange_device(curdev, newdev); in tick_check_new_device()