Home
last modified time | relevance | path

Searched refs:newdev (Results 1 – 5 of 5) sorted by relevance

/kernel/time/
Dtick-common.c208 struct clock_event_device *newdev, int cpu, in tick_setup_device() argument
253 td->evtdev = newdev; in tick_setup_device()
259 if (!cpumask_equal(newdev->cpumask, cpumask)) in tick_setup_device()
260 irq_set_affinity(newdev->irq, cpumask); in tick_setup_device()
269 if (tick_device_uses_broadcast(newdev, cpu)) in tick_setup_device()
273 tick_setup_periodic(newdev, 0); in tick_setup_device()
275 tick_setup_oneshot(newdev, handler, next_event); in tick_setup_device()
278 void tick_install_replacement(struct clock_event_device *newdev) in tick_install_replacement() argument
283 clockevents_exchange_device(td->evtdev, newdev); in tick_install_replacement()
284 tick_setup_device(td, newdev, cpu, cpumask_of(cpu)); in tick_install_replacement()
[all …]
Dtick-broadcast.c87 struct clock_event_device *newdev) in tick_check_broadcast_device() argument
89 if ((newdev->features & CLOCK_EVT_FEAT_DUMMY) || in tick_check_broadcast_device()
90 (newdev->features & CLOCK_EVT_FEAT_PERCPU) || in tick_check_broadcast_device()
91 (newdev->features & CLOCK_EVT_FEAT_C3STOP)) in tick_check_broadcast_device()
95 !(newdev->features & CLOCK_EVT_FEAT_ONESHOT)) in tick_check_broadcast_device()
98 return !curdev || newdev->rating > curdev->rating; in tick_check_broadcast_device()
116 static bool tick_set_oneshot_wakeup_device(struct clock_event_device *newdev, in tick_set_oneshot_wakeup_device() argument
121 if (!newdev) in tick_set_oneshot_wakeup_device()
124 if ((newdev->features & CLOCK_EVT_FEAT_DUMMY) || in tick_set_oneshot_wakeup_device()
125 (newdev->features & CLOCK_EVT_FEAT_C3STOP)) in tick_set_oneshot_wakeup_device()
[all …]
Dtick-oneshot.c61 void tick_setup_oneshot(struct clock_event_device *newdev, in tick_setup_oneshot() argument
65 newdev->event_handler = handler; in tick_setup_oneshot()
66 clockevents_switch_state(newdev, CLOCK_EVT_STATE_ONESHOT); in tick_setup_oneshot()
67 clockevents_program_event(newdev, next_event, true); in tick_setup_oneshot()
Dclockevents.c360 struct clock_event_device *dev, *newdev = NULL; in clockevents_replace() local
366 if (!tick_check_replacement(newdev, dev)) in clockevents_replace()
372 if (newdev) in clockevents_replace()
373 module_put(newdev->owner); in clockevents_replace()
374 newdev = dev; in clockevents_replace()
376 if (newdev) { in clockevents_replace()
377 tick_install_replacement(newdev); in clockevents_replace()
380 return newdev ? 0 : -EBUSY; in clockevents_replace()
Dtick-internal.h27 struct clock_event_device *newdev);
100 extern void tick_setup_oneshot(struct clock_event_device *newdev,
114 void tick_setup_oneshot(struct clock_event_device *newdev, in tick_setup_oneshot() argument