Lines Matching refs:cpu
250 int cpu = smp_processor_id();
252 if (HYPERVISOR_vcpu_op(VCPUOP_stop_singleshot_timer, xen_vcpu_nr(cpu),
254 HYPERVISOR_vcpu_op(VCPUOP_stop_periodic_timer, xen_vcpu_nr(cpu),
263 int cpu = smp_processor_id();
265 if (HYPERVISOR_vcpu_op(VCPUOP_stop_periodic_timer, xen_vcpu_nr(cpu),
275 int cpu = smp_processor_id();
285 ret = HYPERVISOR_vcpu_op(VCPUOP_set_singleshot_timer, xen_vcpu_nr(cpu),
333 void xen_teardown_timer(int cpu)
336 evt = &per_cpu(xen_clock_events, cpu).evt;
344 void xen_setup_timer(int cpu)
346 struct xen_clock_event_device *xevt = &per_cpu(xen_clock_events, cpu);
350 WARN(evt->irq >= 0, "IRQ%d for CPU%d is already allocated\n", evt->irq, cpu);
352 xen_teardown_timer(cpu);
354 printk(KERN_INFO "installing Xen timer for CPU %d\n", cpu);
356 snprintf(xevt->name, sizeof(xevt->name), "timer%d", cpu);
358 irq = bind_virq_to_irqhandler(VIRQ_TIMER, cpu, xen_timer_interrupt,
366 evt->cpumask = cpumask_of(cpu);
378 int cpu;
383 for_each_online_cpu(cpu) {
385 xen_vcpu_nr(cpu), NULL))
512 int cpu = smp_processor_id();
529 if (HYPERVISOR_vcpu_op(VCPUOP_stop_periodic_timer, xen_vcpu_nr(cpu),
553 xen_setup_runstate_info(cpu);
554 xen_setup_timer(cpu);
589 int cpu = smp_processor_id();
590 xen_setup_runstate_info(cpu);
592 * xen_setup_timer(cpu) - snprintf is bad in atomic context. Hence
608 * on cpu > 0 and at this point we don't know how many cpus are