diff options
Diffstat (limited to 'include/asm-i386/paravirt.h')
-rw-r--r-- | include/asm-i386/paravirt.h | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/include/asm-i386/paravirt.h b/include/asm-i386/paravirt.h index 690ada22437a..7df88be2dd9e 100644 --- a/include/asm-i386/paravirt.h +++ b/include/asm-i386/paravirt.h | |||
@@ -118,7 +118,7 @@ struct paravirt_ops | |||
118 | 118 | ||
119 | u64 (*read_tsc)(void); | 119 | u64 (*read_tsc)(void); |
120 | u64 (*read_pmc)(void); | 120 | u64 (*read_pmc)(void); |
121 | u64 (*get_scheduled_cycles)(void); | 121 | unsigned long long (*sched_clock)(void); |
122 | unsigned long (*get_cpu_khz)(void); | 122 | unsigned long (*get_cpu_khz)(void); |
123 | 123 | ||
124 | /* Segment descriptor handling */ | 124 | /* Segment descriptor handling */ |
@@ -566,7 +566,10 @@ static inline u64 paravirt_read_tsc(void) | |||
566 | 566 | ||
567 | #define rdtscll(val) (val = paravirt_read_tsc()) | 567 | #define rdtscll(val) (val = paravirt_read_tsc()) |
568 | 568 | ||
569 | #define get_scheduled_cycles(val) (val = paravirt_ops.get_scheduled_cycles()) | 569 | static inline unsigned long long paravirt_sched_clock(void) |
570 | { | ||
571 | return PVOP_CALL0(unsigned long long, sched_clock); | ||
572 | } | ||
570 | #define calculate_cpu_khz() (paravirt_ops.get_cpu_khz()) | 573 | #define calculate_cpu_khz() (paravirt_ops.get_cpu_khz()) |
571 | 574 | ||
572 | #define write_tsc(val1,val2) wrmsr(0x10, val1, val2) | 575 | #define write_tsc(val1,val2) wrmsr(0x10, val1, val2) |