Lines Matching refs:curdev
247 static bool tick_check_percpu(struct clock_event_device *curdev, in tick_check_percpu() argument
258 if (curdev && cpumask_equal(curdev->cpumask, cpumask_of(cpu))) in tick_check_percpu()
263 static bool tick_check_preferred(struct clock_event_device *curdev, in tick_check_preferred() argument
268 if (curdev && (curdev->features & CLOCK_EVT_FEAT_ONESHOT)) in tick_check_preferred()
278 return !curdev || in tick_check_preferred()
279 newdev->rating > curdev->rating || in tick_check_preferred()
280 !cpumask_equal(curdev->cpumask, newdev->cpumask); in tick_check_preferred()
287 bool tick_check_replacement(struct clock_event_device *curdev, in tick_check_replacement() argument
290 if (!tick_check_percpu(curdev, newdev, smp_processor_id())) in tick_check_replacement()
293 return tick_check_preferred(curdev, newdev); in tick_check_replacement()
302 struct clock_event_device *curdev; in tick_check_new_device() local
308 curdev = td->evtdev; in tick_check_new_device()
311 if (!tick_check_percpu(curdev, newdev, cpu)) in tick_check_new_device()
315 if (!tick_check_preferred(curdev, newdev)) in tick_check_new_device()
326 if (tick_is_broadcast_device(curdev)) { in tick_check_new_device()
327 clockevents_shutdown(curdev); in tick_check_new_device()
328 curdev = NULL; in tick_check_new_device()
330 clockevents_exchange_device(curdev, newdev); in tick_check_new_device()