diff options
Diffstat (limited to 'include/asm-i386/paravirt.h')
-rw-r--r-- | include/asm-i386/paravirt.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/asm-i386/paravirt.h b/include/asm-i386/paravirt.h index 6317e0a4d735..a13230254f4f 100644 --- a/include/asm-i386/paravirt.h +++ b/include/asm-i386/paravirt.h | |||
@@ -94,6 +94,7 @@ struct paravirt_ops | |||
94 | 94 | ||
95 | u64 (*read_tsc)(void); | 95 | u64 (*read_tsc)(void); |
96 | u64 (*read_pmc)(void); | 96 | u64 (*read_pmc)(void); |
97 | u64 (*get_scheduled_cycles)(void); | ||
97 | 98 | ||
98 | void (*load_tr_desc)(void); | 99 | void (*load_tr_desc)(void); |
99 | void (*load_gdt)(const struct Xgt_desc_struct *); | 100 | void (*load_gdt)(const struct Xgt_desc_struct *); |
@@ -273,6 +274,8 @@ static inline void halt(void) | |||
273 | 274 | ||
274 | #define rdtscll(val) (val = paravirt_ops.read_tsc()) | 275 | #define rdtscll(val) (val = paravirt_ops.read_tsc()) |
275 | 276 | ||
277 | #define get_scheduled_cycles(val) (val = paravirt_ops.get_scheduled_cycles()) | ||
278 | |||
276 | #define write_tsc(val1,val2) wrmsr(0x10, val1, val2) | 279 | #define write_tsc(val1,val2) wrmsr(0x10, val1, val2) |
277 | 280 | ||
278 | #define rdpmc(counter,low,high) do { \ | 281 | #define rdpmc(counter,low,high) do { \ |