Lines Matching refs:newdev
202 struct clock_event_device *newdev, int cpu, in tick_setup_device() argument
249 td->evtdev = newdev; in tick_setup_device()
255 if (!cpumask_equal(newdev->cpumask, cpumask)) in tick_setup_device()
256 irq_set_affinity(newdev->irq, cpumask); in tick_setup_device()
265 if (tick_device_uses_broadcast(newdev, cpu)) in tick_setup_device()
269 tick_setup_periodic(newdev, 0); in tick_setup_device()
271 tick_setup_oneshot(newdev, handler, next_event); in tick_setup_device()
274 void tick_install_replacement(struct clock_event_device *newdev) in tick_install_replacement() argument
279 clockevents_exchange_device(td->evtdev, newdev); in tick_install_replacement()
280 tick_setup_device(td, newdev, cpu, cpumask_of(cpu)); in tick_install_replacement()
281 if (newdev->features & CLOCK_EVT_FEAT_ONESHOT) in tick_install_replacement()
286 struct clock_event_device *newdev, int cpu) in tick_check_percpu() argument
288 if (!cpumask_test_cpu(cpu, newdev->cpumask)) in tick_check_percpu()
290 if (cpumask_equal(newdev->cpumask, cpumask_of(cpu))) in tick_check_percpu()
293 if (newdev->irq >= 0 && !irq_can_set_affinity(newdev->irq)) in tick_check_percpu()
302 struct clock_event_device *newdev) in tick_check_preferred() argument
305 if (!(newdev->features & CLOCK_EVT_FEAT_ONESHOT)) { in tick_check_preferred()
317 newdev->rating > curdev->rating || in tick_check_preferred()
318 !cpumask_equal(curdev->cpumask, newdev->cpumask); in tick_check_preferred()
326 struct clock_event_device *newdev) in tick_check_replacement() argument
328 if (!tick_check_percpu(curdev, newdev, smp_processor_id())) in tick_check_replacement()
331 return tick_check_preferred(curdev, newdev); in tick_check_replacement()
338 void tick_check_new_device(struct clock_event_device *newdev) in tick_check_new_device() argument
349 if (!tick_check_percpu(curdev, newdev, cpu)) in tick_check_new_device()
353 if (!tick_check_preferred(curdev, newdev)) in tick_check_new_device()
356 if (!try_module_get(newdev->owner)) in tick_check_new_device()
368 clockevents_exchange_device(curdev, newdev); in tick_check_new_device()
369 tick_setup_device(td, newdev, cpu, cpumask_of(cpu)); in tick_check_new_device()
370 if (newdev->features & CLOCK_EVT_FEAT_ONESHOT) in tick_check_new_device()
378 tick_install_broadcast_device(newdev); in tick_check_new_device()