Searched refs:td (Results 1 – 8 of 8) sorted by relevance
/kernel/locking/ |
D | rtmutex-tester.c | 55 static int handle_op(struct test_thread_data *td, int lockwakeup) in handle_op() argument 59 switch(td->opcode) { in handle_op() 65 td->mutexes[td->opdata] = 1; in handle_op() 66 td->event = atomic_add_return(1, &rttest_event); in handle_op() 71 if (td->mutexes[i] == 4) { in handle_op() 73 td->mutexes[i] = 0; in handle_op() 87 switch(td->opcode) { in handle_op() 91 id = td->opdata; in handle_op() 95 td->mutexes[id] = 1; in handle_op() 96 td->event = atomic_add_return(1, &rttest_event); in handle_op() [all …]
|
/kernel/ |
D | smpboot.c | 106 struct smpboot_thread_data *td = data; in smpboot_thread_fn() local 107 struct smp_hotplug_thread *ht = td->ht; in smpboot_thread_fn() 116 ht->cleanup(td->cpu, cpu_online(td->cpu)); in smpboot_thread_fn() 117 kfree(td); in smpboot_thread_fn() 124 if (ht->park && td->status == HP_THREAD_ACTIVE) { in smpboot_thread_fn() 125 BUG_ON(td->cpu != smp_processor_id()); in smpboot_thread_fn() 126 ht->park(td->cpu); in smpboot_thread_fn() 127 td->status = HP_THREAD_PARKED; in smpboot_thread_fn() 134 BUG_ON(td->cpu != smp_processor_id()); in smpboot_thread_fn() 137 switch (td->status) { in smpboot_thread_fn() [all …]
|
/kernel/time/ |
D | tick-common.c | 166 static void tick_setup_device(struct tick_device *td, in tick_setup_device() argument 176 if (!td->evtdev) { in tick_setup_device() 193 td->mode = TICKDEV_MODE_PERIODIC; in tick_setup_device() 195 handler = td->evtdev->event_handler; in tick_setup_device() 196 next_event = td->evtdev->next_event; in tick_setup_device() 197 td->evtdev->event_handler = clockevents_handle_noop; in tick_setup_device() 200 td->evtdev = newdev; in tick_setup_device() 219 if (td->mode == TICKDEV_MODE_PERIODIC) in tick_setup_device() 227 struct tick_device *td = this_cpu_ptr(&tick_cpu_device); in tick_install_replacement() local 230 clockevents_exchange_device(td->evtdev, newdev); in tick_install_replacement() [all …]
|
D | tick-broadcast.c | 239 struct tick_device *td = this_cpu_ptr(&tick_cpu_device); in tick_receive_broadcast() local 240 struct clock_event_device *evt = td->evtdev; in tick_receive_broadcast() 259 struct tick_device *td; in tick_do_broadcast() local 266 td = &per_cpu(tick_cpu_device, cpu); in tick_do_broadcast() 267 td->evtdev->event_handler(td->evtdev); in tick_do_broadcast() 277 td = &per_cpu(tick_cpu_device, cpumask_first(mask)); in tick_do_broadcast() 278 td->evtdev->broadcast(mask); in tick_do_broadcast() 334 struct tick_device *td; in tick_do_broadcast_on_off() local 341 td = &per_cpu(tick_cpu_device, cpu); in tick_do_broadcast_on_off() 342 dev = td->evtdev; in tick_do_broadcast_on_off() [all …]
|
D | tick-oneshot.c | 62 struct tick_device *td = this_cpu_ptr(&tick_cpu_device); in tick_switch_to_oneshot() local 63 struct clock_event_device *dev = td->evtdev; in tick_switch_to_oneshot() 82 td->mode = TICKDEV_MODE_ONESHOT; in tick_switch_to_oneshot()
|
D | clockevents.c | 626 struct tick_device *td; in sysfs_show_current_tick_dev() local 630 td = tick_get_tick_dev(dev); in sysfs_show_current_tick_dev() 631 if (td && td->evtdev) in sysfs_show_current_tick_dev() 632 count = snprintf(buf, PAGE_SIZE, "%s\n", td->evtdev->name); in sysfs_show_current_tick_dev()
|
D | timer_list.c | 201 print_tickdevice(struct seq_file *m, struct tick_device *td, int cpu) in print_tickdevice() argument 203 struct clock_event_device *dev = td->evtdev; in print_tickdevice() 205 SEQ_printf(m, "Tick Device: mode: %d\n", td->mode); in print_tickdevice()
|
D | hrtimer.c | 1377 struct tick_device *td; in __hrtimer_peek_ahead_timers() local 1382 td = this_cpu_ptr(&tick_cpu_device); in __hrtimer_peek_ahead_timers() 1383 if (td && td->evtdev) in __hrtimer_peek_ahead_timers() 1384 hrtimer_interrupt(td->evtdev); in __hrtimer_peek_ahead_timers()
|