Lines Matching defs:cpu
42 static void xen_init_missing_ticks_accounting(int cpu)
45 struct vcpu_runstate_info *runstate = &per_cpu(xen_runstate, cpu);
51 rc = HYPERVISOR_vcpu_op(VCPUOP_register_runstate_memory_area, cpu,
55 per_cpu(xen_blocked_time, cpu) = runstate->time[RUNSTATE_blocked];
56 per_cpu(xen_stolen_time, cpu) = runstate->time[RUNSTATE_runnable]
93 int cpu = smp_processor_id();
106 per_cpu(xen_blocked_time, cpu)))
111 per_cpu(xen_stolen_time, cpu)))
136 rcu_check_callbacks(cpu, user_mode(get_irq_regs()));
142 if (cpu == time_keeper_id) {
150 per_cpu(xen_stolen_time, cpu) += NS_PER_TICK * stolen;
151 per_cpu(xen_blocked_time, cpu) += NS_PER_TICK * blocked;
196 * Ideally sched_clock should be called on a per-cpu basis
242 unsigned int cpu;
246 for_each_online_cpu(cpu)
247 xen_init_missing_ticks_accounting(cpu);