Lines Matching refs:cpu
53 static void insert_timer_in_queue(uint cpu, timer_t *timer) { in insert_timer_in_queue() argument
58 …LTRACEF("timer %p, cpu %u, scheduled %u, periodic %u\n", timer, cpu, timer->scheduled_time, timer-… in insert_timer_in_queue()
60 list_for_every_entry(&timers[cpu].timer_queue, entry, timer_t, node) { in insert_timer_in_queue()
68 list_add_tail(&timers[cpu].timer_queue, &timer->node); in insert_timer_in_queue()
93 uint cpu = arch_curr_cpu_num(); in timer_set() local
94 insert_timer_in_queue(cpu, timer); in timer_set()
97 if (list_peek_head_type(&timers[cpu].timer_queue, timer_t, node) == timer) { in timer_set()
157 uint cpu = arch_curr_cpu_num(); in timer_cancel() local
159 timer_t *oldhead = list_peek_head_type(&timers[cpu].timer_queue, timer_t, node); in timer_cancel()
174 timer_t *newhead = list_peek_head_type(&timers[cpu].timer_queue, timer_t, node); in timer_cancel()
205 uint cpu = arch_curr_cpu_num(); in timer_tick() local
207 LTRACEF("cpu %u now %u, sp %p\n", cpu, now, __GET_FRAME()); in timer_tick()
213 timer = list_peek_head_type(&timers[cpu].timer_queue, timer_t, node); in timer_tick()
251 insert_timer_in_queue(cpu, timer); in timer_tick()
257 timer = list_peek_head_type(&timers[cpu].timer_queue, timer_t, node); in timer_tick()