Lines Matching refs:cpu
62 struct tick_device *tick_get_device(int cpu) in tick_get_device() argument
64 return &per_cpu(tick_cpu_device, cpu); in tick_get_device()
84 static void tick_periodic(int cpu) in tick_periodic() argument
86 if (tick_do_timer_cpu == cpu) { in tick_periodic()
109 int cpu = smp_processor_id(); in tick_handle_periodic() local
112 tick_periodic(cpu); in tick_handle_periodic()
145 tick_periodic(cpu); in tick_handle_periodic()
185 int cpu = *(unsigned int *)info; in giveup_do_timer() local
189 tick_do_timer_cpu = cpu; in giveup_do_timer()
194 int cpu = smp_processor_id(); in tick_take_do_timer_from_boot() local
197 if (from >= 0 && from != cpu) in tick_take_do_timer_from_boot()
198 smp_call_function_single(from, giveup_do_timer, &cpu, 1); in tick_take_do_timer_from_boot()
206 struct clock_event_device *newdev, int cpu, in tick_setup_device() argument
221 tick_do_timer_cpu = cpu; in tick_setup_device()
230 if (tick_nohz_full_cpu(cpu)) in tick_setup_device()
231 tick_do_timer_boot_cpu = cpu; in tick_setup_device()
234 !tick_nohz_full_cpu(cpu)) { in tick_setup_device()
237 WARN_ON(tick_do_timer_cpu != cpu); in tick_setup_device()
267 if (tick_device_uses_broadcast(newdev, cpu)) in tick_setup_device()
279 int cpu = smp_processor_id(); in tick_install_replacement() local
282 tick_setup_device(td, newdev, cpu, cpumask_of(cpu)); in tick_install_replacement()
288 struct clock_event_device *newdev, int cpu) in tick_check_percpu() argument
290 if (!cpumask_test_cpu(cpu, newdev->cpumask)) in tick_check_percpu()
292 if (cpumask_equal(newdev->cpumask, cpumask_of(cpu))) in tick_check_percpu()
298 if (curdev && cpumask_equal(curdev->cpumask, cpumask_of(cpu))) in tick_check_percpu()
344 int cpu; in tick_check_new_device() local
346 cpu = smp_processor_id(); in tick_check_new_device()
347 td = &per_cpu(tick_cpu_device, cpu); in tick_check_new_device()
351 if (!tick_check_percpu(curdev, newdev, cpu)) in tick_check_new_device()
371 tick_setup_device(td, newdev, cpu, cpumask_of(cpu)); in tick_check_new_device()
380 tick_install_broadcast_device(newdev, cpu); in tick_check_new_device()
415 int cpu = cpumask_first(cpu_online_mask); in tick_handover_do_timer() local
417 tick_do_timer_cpu = (cpu < nr_cpu_ids) ? cpu : in tick_handover_do_timer()
429 void tick_shutdown(unsigned int cpu) in tick_shutdown() argument
431 struct tick_device *td = &per_cpu(tick_cpu_device, cpu); in tick_shutdown()