Lines Matching refs:newdev

186 			      struct clock_event_device *newdev, int cpu,  in tick_setup_device()  argument
237 td->evtdev = newdev; in tick_setup_device()
243 if (!cpumask_equal(newdev->cpumask, cpumask)) in tick_setup_device()
244 irq_set_affinity(newdev->irq, cpumask); in tick_setup_device()
253 if (tick_device_uses_broadcast(newdev, cpu)) in tick_setup_device()
257 tick_setup_periodic(newdev, 0); in tick_setup_device()
259 tick_setup_oneshot(newdev, handler, next_event); in tick_setup_device()
262 void tick_install_replacement(struct clock_event_device *newdev) in tick_install_replacement() argument
267 clockevents_exchange_device(td->evtdev, newdev); in tick_install_replacement()
268 tick_setup_device(td, newdev, cpu, cpumask_of(cpu)); in tick_install_replacement()
269 if (newdev->features & CLOCK_EVT_FEAT_ONESHOT) in tick_install_replacement()
274 struct clock_event_device *newdev, int cpu) in tick_check_percpu() argument
276 if (!cpumask_test_cpu(cpu, newdev->cpumask)) in tick_check_percpu()
278 if (cpumask_equal(newdev->cpumask, cpumask_of(cpu))) in tick_check_percpu()
281 if (newdev->irq >= 0 && !irq_can_set_affinity(newdev->irq)) in tick_check_percpu()
290 struct clock_event_device *newdev) in tick_check_preferred() argument
293 if (!(newdev->features & CLOCK_EVT_FEAT_ONESHOT)) { in tick_check_preferred()
305 newdev->rating > curdev->rating || in tick_check_preferred()
306 !cpumask_equal(curdev->cpumask, newdev->cpumask); in tick_check_preferred()
314 struct clock_event_device *newdev) in tick_check_replacement() argument
316 if (!tick_check_percpu(curdev, newdev, smp_processor_id())) in tick_check_replacement()
319 return tick_check_preferred(curdev, newdev); in tick_check_replacement()
326 void tick_check_new_device(struct clock_event_device *newdev) in tick_check_new_device() argument
336 if (!tick_check_replacement(curdev, newdev)) in tick_check_new_device()
339 if (!try_module_get(newdev->owner)) in tick_check_new_device()
351 clockevents_exchange_device(curdev, newdev); in tick_check_new_device()
352 tick_setup_device(td, newdev, cpu, cpumask_of(cpu)); in tick_check_new_device()
353 if (newdev->features & CLOCK_EVT_FEAT_ONESHOT) in tick_check_new_device()
361 tick_install_broadcast_device(newdev, cpu); in tick_check_new_device()