diff options
-rw-r--r-- | arch/x86/xen/time.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/arch/x86/xen/time.c b/arch/x86/xen/time.c index b3721fd6877b..c39e1a5aa241 100644 --- a/arch/x86/xen/time.c +++ b/arch/x86/xen/time.c | |||
@@ -217,17 +217,17 @@ unsigned long long xen_sched_clock(void) | |||
217 | /* Get the CPU speed from Xen */ | 217 | /* Get the CPU speed from Xen */ |
218 | unsigned long xen_cpu_khz(void) | 218 | unsigned long xen_cpu_khz(void) |
219 | { | 219 | { |
220 | u64 cpu_khz = 1000000ULL << 32; | 220 | u64 xen_khz = 1000000ULL << 32; |
221 | const struct vcpu_time_info *info = | 221 | const struct vcpu_time_info *info = |
222 | &HYPERVISOR_shared_info->vcpu_info[0].time; | 222 | &HYPERVISOR_shared_info->vcpu_info[0].time; |
223 | 223 | ||
224 | do_div(cpu_khz, info->tsc_to_system_mul); | 224 | do_div(xen_khz, info->tsc_to_system_mul); |
225 | if (info->tsc_shift < 0) | 225 | if (info->tsc_shift < 0) |
226 | cpu_khz <<= -info->tsc_shift; | 226 | xen_khz <<= -info->tsc_shift; |
227 | else | 227 | else |
228 | cpu_khz >>= info->tsc_shift; | 228 | xen_khz >>= info->tsc_shift; |
229 | 229 | ||
230 | return cpu_khz; | 230 | return xen_khz; |
231 | } | 231 | } |
232 | 232 | ||
233 | /* | 233 | /* |