Lines Matching defs:newdev
87 struct clock_event_device *newdev)
89 if ((newdev->features & CLOCK_EVT_FEAT_DUMMY) ||
90 (newdev->features & CLOCK_EVT_FEAT_PERCPU) ||
91 (newdev->features & CLOCK_EVT_FEAT_C3STOP))
95 !(newdev->features & CLOCK_EVT_FEAT_ONESHOT))
98 return !curdev || newdev->rating > curdev->rating;
116 static bool tick_set_oneshot_wakeup_device(struct clock_event_device *newdev,
121 if (!newdev)
124 if ((newdev->features & CLOCK_EVT_FEAT_DUMMY) ||
125 (newdev->features & CLOCK_EVT_FEAT_C3STOP))
128 if (!(newdev->features & CLOCK_EVT_FEAT_PERCPU) ||
129 !(newdev->features & CLOCK_EVT_FEAT_ONESHOT))
132 if (!cpumask_equal(newdev->cpumask, cpumask_of(cpu)))
135 if (curdev && newdev->rating <= curdev->rating)
138 if (!try_module_get(newdev->owner))
141 newdev->event_handler = tick_oneshot_wakeup_handler;
143 clockevents_exchange_device(curdev, newdev);
144 per_cpu(tick_oneshot_wakeup_device, cpu) = newdev;
153 static bool tick_set_oneshot_wakeup_device(struct clock_event_device *newdev,