Lines Matching defs:cpu
93 /* return true when a vcpu could run but has no real cpu to run on */
99 void xen_setup_runstate_info(int cpu)
103 area.addr.v = &per_cpu(xen_runstate, cpu);
106 cpu, &area))
304 int cpu = smp_processor_id();
312 if (HYPERVISOR_vcpu_op(VCPUOP_stop_periodic_timer, cpu, NULL))
318 if (HYPERVISOR_vcpu_op(VCPUOP_stop_singleshot_timer, cpu, NULL) ||
319 HYPERVISOR_vcpu_op(VCPUOP_stop_periodic_timer, cpu, NULL))
330 int cpu = smp_processor_id();
339 ret = HYPERVISOR_vcpu_op(VCPUOP_set_singleshot_timer, cpu, &single);
381 void xen_setup_timer(int cpu)
387 printk(KERN_INFO "installing Xen timer for CPU %d\n", cpu);
389 name = kasprintf(GFP_KERNEL, "timer%d", cpu);
393 irq = bind_virq_to_irqhandler(VIRQ_TIMER, cpu, xen_timer_interrupt,
397 evt = &per_cpu(xen_clock_events, cpu);
400 evt->cpumask = cpumask_of(cpu);
404 void xen_teardown_timer(int cpu)
407 BUG_ON(cpu == 0);
408 evt = &per_cpu(xen_clock_events, cpu);
421 int cpu;
426 for_each_online_cpu(cpu) {
427 if (HYPERVISOR_vcpu_op(VCPUOP_stop_periodic_timer, cpu, NULL))
438 int cpu = smp_processor_id();
443 if (HYPERVISOR_vcpu_op(VCPUOP_stop_periodic_timer, cpu, NULL) == 0) {
456 xen_setup_runstate_info(cpu);
457 xen_setup_timer(cpu);
477 int cpu = smp_processor_id();
478 xen_setup_runstate_info(cpu);
479 xen_setup_timer(cpu);
486 * on cpu > 0 and at this point we don't know how many cpus are