Lines Matching refs:cpu

104 void xen_setup_runstate_info(int cpu)  in xen_setup_runstate_info()  argument
108 area.addr.v = &per_cpu(xen_runstate, cpu); in xen_setup_runstate_info()
111 cpu, &area)) in xen_setup_runstate_info()
332 int cpu = smp_processor_id(); in xen_vcpuop_set_mode() local
340 if (HYPERVISOR_vcpu_op(VCPUOP_stop_periodic_timer, cpu, NULL)) in xen_vcpuop_set_mode()
346 if (HYPERVISOR_vcpu_op(VCPUOP_stop_singleshot_timer, cpu, NULL) || in xen_vcpuop_set_mode()
347 HYPERVISOR_vcpu_op(VCPUOP_stop_periodic_timer, cpu, NULL)) in xen_vcpuop_set_mode()
358 int cpu = smp_processor_id(); in xen_vcpuop_set_next_event() local
367 ret = HYPERVISOR_vcpu_op(VCPUOP_set_singleshot_timer, cpu, &single); in xen_vcpuop_set_next_event()
414 void xen_teardown_timer(int cpu) in xen_teardown_timer() argument
417 BUG_ON(cpu == 0); in xen_teardown_timer()
418 evt = &per_cpu(xen_clock_events, cpu).evt; in xen_teardown_timer()
426 void xen_setup_timer(int cpu) in xen_setup_timer() argument
428 struct xen_clock_event_device *xevt = &per_cpu(xen_clock_events, cpu); in xen_setup_timer()
432 WARN(evt->irq >= 0, "IRQ%d for CPU%d is already allocated\n", evt->irq, cpu); in xen_setup_timer()
434 xen_teardown_timer(cpu); in xen_setup_timer()
436 printk(KERN_INFO "installing Xen timer for CPU %d\n", cpu); in xen_setup_timer()
438 snprintf(xevt->name, sizeof(xevt->name), "timer%d", cpu); in xen_setup_timer()
440 irq = bind_virq_to_irqhandler(VIRQ_TIMER, cpu, xen_timer_interrupt, in xen_setup_timer()
448 evt->cpumask = cpumask_of(cpu); in xen_setup_timer()
460 int cpu; in xen_timer_resume() local
467 for_each_online_cpu(cpu) { in xen_timer_resume()
468 if (HYPERVISOR_vcpu_op(VCPUOP_stop_periodic_timer, cpu, NULL)) in xen_timer_resume()
479 int cpu = smp_processor_id(); in xen_time_init() local
488 if (HYPERVISOR_vcpu_op(VCPUOP_stop_periodic_timer, cpu, NULL) == 0) { in xen_time_init()
501 xen_setup_runstate_info(cpu); in xen_time_init()
502 xen_setup_timer(cpu); in xen_time_init()
527 int cpu = smp_processor_id(); in xen_hvm_setup_cpu_clockevents() local
528 xen_setup_runstate_info(cpu); in xen_hvm_setup_cpu_clockevents()