Lines Matching refs:td
137 static void tick_setup_device(struct tick_device *td, in tick_setup_device() argument
147 if (!td->evtdev) { in tick_setup_device()
161 td->mode = TICKDEV_MODE_PERIODIC; in tick_setup_device()
163 handler = td->evtdev->event_handler; in tick_setup_device()
164 next_event = td->evtdev->next_event; in tick_setup_device()
165 td->evtdev->event_handler = clockevents_handle_noop; in tick_setup_device()
168 td->evtdev = newdev; in tick_setup_device()
186 if (td->mode == TICKDEV_MODE_PERIODIC) in tick_setup_device()
198 struct tick_device *td; in tick_check_new_device() local
208 td = &per_cpu(tick_cpu_device, cpu); in tick_check_new_device()
209 curdev = td->evtdev; in tick_check_new_device()
257 tick_setup_device(td, newdev, cpu, cpumask_of(cpu)); in tick_check_new_device()
300 struct tick_device *td = &per_cpu(tick_cpu_device, *cpup); in tick_shutdown() local
301 struct clock_event_device *dev = td->evtdev; in tick_shutdown()
305 td->mode = TICKDEV_MODE_PERIODIC; in tick_shutdown()
313 td->evtdev = NULL; in tick_shutdown()
320 struct tick_device *td = &__get_cpu_var(tick_cpu_device); in tick_suspend() local
324 clockevents_shutdown(td->evtdev); in tick_suspend()
330 struct tick_device *td = &__get_cpu_var(tick_cpu_device); in tick_resume() local
335 clockevents_set_mode(td->evtdev, CLOCK_EVT_MODE_RESUME); in tick_resume()
338 if (td->mode == TICKDEV_MODE_PERIODIC) in tick_resume()
339 tick_setup_periodic(td->evtdev, 0); in tick_resume()