diff options
Diffstat (limited to 'arch/x86/xen/time.c')
-rw-r--r-- | arch/x86/xen/time.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/arch/x86/xen/time.c b/arch/x86/xen/time.c index dfd6db69ead5..d083ff5ef088 100644 --- a/arch/x86/xen/time.c +++ b/arch/x86/xen/time.c | |||
@@ -105,6 +105,12 @@ static void get_runstate_snapshot(struct vcpu_runstate_info *res) | |||
105 | } while (get64(&state->state_entry_time) != state_time); | 105 | } while (get64(&state->state_entry_time) != state_time); |
106 | } | 106 | } |
107 | 107 | ||
108 | /* return true when a vcpu could run but has no real cpu to run on */ | ||
109 | bool xen_vcpu_stolen(int vcpu) | ||
110 | { | ||
111 | return per_cpu(runstate, vcpu).state == RUNSTATE_runnable; | ||
112 | } | ||
113 | |||
108 | static void setup_runstate_info(int cpu) | 114 | static void setup_runstate_info(int cpu) |
109 | { | 115 | { |
110 | struct vcpu_register_runstate_memory_area area; | 116 | struct vcpu_register_runstate_memory_area area; |