Lines Matching refs:newdev

87 					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()
128 if (!(newdev->features & CLOCK_EVT_FEAT_PERCPU) || in tick_set_oneshot_wakeup_device()
129 !(newdev->features & CLOCK_EVT_FEAT_ONESHOT)) in tick_set_oneshot_wakeup_device()
132 if (!cpumask_equal(newdev->cpumask, cpumask_of(cpu))) in tick_set_oneshot_wakeup_device()
135 if (curdev && newdev->rating <= curdev->rating) in tick_set_oneshot_wakeup_device()
138 if (!try_module_get(newdev->owner)) in tick_set_oneshot_wakeup_device()
141 newdev->event_handler = tick_oneshot_wakeup_handler; in tick_set_oneshot_wakeup_device()
143 clockevents_exchange_device(curdev, newdev); in tick_set_oneshot_wakeup_device()
144 per_cpu(tick_oneshot_wakeup_device, cpu) = newdev; in tick_set_oneshot_wakeup_device()
153 static bool tick_set_oneshot_wakeup_device(struct clock_event_device *newdev, in tick_set_oneshot_wakeup_device() argument