Lines Matching refs:newdev

206 			      struct clock_event_device *newdev, int cpu,  in tick_setup_device()  argument
251 td->evtdev = newdev; in tick_setup_device()
257 if (!cpumask_equal(newdev->cpumask, cpumask)) in tick_setup_device()
258 irq_set_affinity(newdev->irq, cpumask); in tick_setup_device()
267 if (tick_device_uses_broadcast(newdev, cpu)) in tick_setup_device()
271 tick_setup_periodic(newdev, 0); in tick_setup_device()
273 tick_setup_oneshot(newdev, handler, next_event); in tick_setup_device()
276 void tick_install_replacement(struct clock_event_device *newdev) in tick_install_replacement() argument
281 clockevents_exchange_device(td->evtdev, newdev); in tick_install_replacement()
282 tick_setup_device(td, newdev, cpu, cpumask_of(cpu)); in tick_install_replacement()
283 if (newdev->features & CLOCK_EVT_FEAT_ONESHOT) in tick_install_replacement()
288 struct clock_event_device *newdev, int cpu) in tick_check_percpu() argument
290 if (!cpumask_test_cpu(cpu, newdev->cpumask)) in tick_check_percpu()
292 if (cpumask_equal(newdev->cpumask, cpumask_of(cpu))) in tick_check_percpu()
295 if (newdev->irq >= 0 && !irq_can_set_affinity(newdev->irq)) in tick_check_percpu()
304 struct clock_event_device *newdev) in tick_check_preferred() argument
307 if (!(newdev->features & CLOCK_EVT_FEAT_ONESHOT)) { in tick_check_preferred()
319 newdev->rating > curdev->rating || in tick_check_preferred()
320 !cpumask_equal(curdev->cpumask, newdev->cpumask); in tick_check_preferred()
328 struct clock_event_device *newdev) in tick_check_replacement() argument
330 if (!tick_check_percpu(curdev, newdev, smp_processor_id())) in tick_check_replacement()
333 return tick_check_preferred(curdev, newdev); in tick_check_replacement()
340 void tick_check_new_device(struct clock_event_device *newdev) in tick_check_new_device() argument
350 if (!tick_check_replacement(curdev, newdev)) in tick_check_new_device()
353 if (!try_module_get(newdev->owner)) in tick_check_new_device()
365 clockevents_exchange_device(curdev, newdev); in tick_check_new_device()
366 tick_setup_device(td, newdev, cpu, cpumask_of(cpu)); in tick_check_new_device()
367 if (newdev->features & CLOCK_EVT_FEAT_ONESHOT) in tick_check_new_device()
375 tick_install_broadcast_device(newdev, cpu); in tick_check_new_device()