Lines Matching defs:runstate
45 struct vcpu_runstate_info *runstate = &per_cpu(xen_runstate, cpu);
48 memset(runstate, 0, sizeof(*runstate));
50 area.addr.v = runstate;
55 per_cpu(xen_blocked_time, cpu) = runstate->time[RUNSTATE_blocked];
56 per_cpu(xen_stolen_time, cpu) = runstate->time[RUNSTATE_runnable]
57 + runstate->time[RUNSTATE_offline];
74 * The runstate info is always updated by the hypervisor on
94 struct vcpu_runstate_info runstate;
97 get_runstate_snapshot(&runstate);
105 if (!time_after_eq(runstate.time[RUNSTATE_blocked],
109 if (!time_after_eq(runstate.time[RUNSTATE_runnable] +
110 runstate.time[RUNSTATE_offline],
189 struct vcpu_runstate_info runstate;
203 * both ia64_native_sched_clock() and xen's runstate are
208 get_runstate_snapshot(&runstate);
210 WARN_ON(runstate.state != RUNSTATE_running);
213 if (now > runstate.state_entry_time)
214 offset = now - runstate.state_entry_time;
215 ret = runstate.time[RUNSTATE_blocked] +
216 runstate.time[RUNSTATE_running] +