Lines Matching refs:newdev

206 			      struct clock_event_device *newdev, int cpu,  in tick_setup_device()  argument
252 td->evtdev = newdev; in tick_setup_device()
258 if (!cpumask_equal(newdev->cpumask, cpumask)) in tick_setup_device()
259 irq_set_affinity(newdev->irq, cpumask); in tick_setup_device()
268 if (tick_device_uses_broadcast(newdev, cpu)) in tick_setup_device()
272 tick_setup_periodic(newdev, 0); in tick_setup_device()
274 tick_setup_oneshot(newdev, handler, next_event); in tick_setup_device()
277 void tick_install_replacement(struct clock_event_device *newdev) in tick_install_replacement() argument
282 clockevents_exchange_device(td->evtdev, newdev); in tick_install_replacement()
283 tick_setup_device(td, newdev, cpu, cpumask_of(cpu)); in tick_install_replacement()
284 if (newdev->features & CLOCK_EVT_FEAT_ONESHOT) in tick_install_replacement()
289 struct clock_event_device *newdev, int cpu) in tick_check_percpu() argument
291 if (!cpumask_test_cpu(cpu, newdev->cpumask)) in tick_check_percpu()
293 if (cpumask_equal(newdev->cpumask, cpumask_of(cpu))) in tick_check_percpu()
296 if (newdev->irq >= 0 && !irq_can_set_affinity(newdev->irq)) in tick_check_percpu()
305 struct clock_event_device *newdev) in tick_check_preferred() argument
308 if (!(newdev->features & CLOCK_EVT_FEAT_ONESHOT)) { in tick_check_preferred()
320 newdev->rating > curdev->rating || in tick_check_preferred()
321 !cpumask_equal(curdev->cpumask, newdev->cpumask); in tick_check_preferred()
329 struct clock_event_device *newdev) in tick_check_replacement() argument
331 if (!tick_check_percpu(curdev, newdev, smp_processor_id())) in tick_check_replacement()
334 return tick_check_preferred(curdev, newdev); in tick_check_replacement()
341 void tick_check_new_device(struct clock_event_device *newdev) in tick_check_new_device() argument
351 if (!tick_check_replacement(curdev, newdev)) in tick_check_new_device()
354 if (!try_module_get(newdev->owner)) in tick_check_new_device()
366 clockevents_exchange_device(curdev, newdev); in tick_check_new_device()
367 tick_setup_device(td, newdev, cpu, cpumask_of(cpu)); in tick_check_new_device()
368 if (newdev->features & CLOCK_EVT_FEAT_ONESHOT) in tick_check_new_device()
376 tick_install_broadcast_device(newdev, cpu); in tick_check_new_device()