Lines Matching refs:newdev
178 struct clock_event_device *newdev, int cpu, in tick_setup_device() argument
211 td->evtdev = newdev; in tick_setup_device()
217 if (!cpumask_equal(newdev->cpumask, cpumask)) in tick_setup_device()
218 irq_set_affinity(newdev->irq, cpumask); in tick_setup_device()
227 if (tick_device_uses_broadcast(newdev, cpu)) in tick_setup_device()
231 tick_setup_periodic(newdev, 0); in tick_setup_device()
233 tick_setup_oneshot(newdev, handler, next_event); in tick_setup_device()
236 void tick_install_replacement(struct clock_event_device *newdev) in tick_install_replacement() argument
241 clockevents_exchange_device(td->evtdev, newdev); in tick_install_replacement()
242 tick_setup_device(td, newdev, cpu, cpumask_of(cpu)); in tick_install_replacement()
243 if (newdev->features & CLOCK_EVT_FEAT_ONESHOT) in tick_install_replacement()
248 struct clock_event_device *newdev, int cpu) in tick_check_percpu() argument
250 if (!cpumask_test_cpu(cpu, newdev->cpumask)) in tick_check_percpu()
252 if (cpumask_equal(newdev->cpumask, cpumask_of(cpu))) in tick_check_percpu()
255 if (newdev->irq >= 0 && !irq_can_set_affinity(newdev->irq)) in tick_check_percpu()
264 struct clock_event_device *newdev) in tick_check_preferred() argument
267 if (!(newdev->features & CLOCK_EVT_FEAT_ONESHOT)) { in tick_check_preferred()
279 newdev->rating > curdev->rating || in tick_check_preferred()
280 !cpumask_equal(curdev->cpumask, newdev->cpumask); in tick_check_preferred()
288 struct clock_event_device *newdev) 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()
300 void tick_check_new_device(struct clock_event_device *newdev) in tick_check_new_device() argument
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()
318 if (!try_module_get(newdev->owner)) in tick_check_new_device()
330 clockevents_exchange_device(curdev, newdev); in tick_check_new_device()
331 tick_setup_device(td, newdev, cpu, cpumask_of(cpu)); in tick_check_new_device()
332 if (newdev->features & CLOCK_EVT_FEAT_ONESHOT) in tick_check_new_device()
340 tick_install_broadcast_device(newdev); in tick_check_new_device()