aboutsummaryrefslogtreecommitdiffstats
path: root/include/asm-i386/paravirt.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/asm-i386/paravirt.h')
-rw-r--r--include/asm-i386/paravirt.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/asm-i386/paravirt.h b/include/asm-i386/paravirt.h
index a13230254f4f..a35c81480654 100644
--- a/include/asm-i386/paravirt.h
+++ b/include/asm-i386/paravirt.h
@@ -95,6 +95,7 @@ struct paravirt_ops
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 u64 (*get_scheduled_cycles)(void);
98 unsigned long (*get_cpu_khz)(void);
98 99
99 void (*load_tr_desc)(void); 100 void (*load_tr_desc)(void);
100 void (*load_gdt)(const struct Xgt_desc_struct *); 101 void (*load_gdt)(const struct Xgt_desc_struct *);
@@ -275,6 +276,7 @@ static inline void halt(void)
275#define rdtscll(val) (val = paravirt_ops.read_tsc()) 276#define rdtscll(val) (val = paravirt_ops.read_tsc())
276 277
277#define get_scheduled_cycles(val) (val = paravirt_ops.get_scheduled_cycles()) 278#define get_scheduled_cycles(val) (val = paravirt_ops.get_scheduled_cycles())
279#define calculate_cpu_khz() (paravirt_ops.get_cpu_khz())
278 280
279#define write_tsc(val1,val2) wrmsr(0x10, val1, val2) 281#define write_tsc(val1,val2) wrmsr(0x10, val1, val2)
280 282