diff options
author | Harvey Harrison <harvey.harrison@gmail.com> | 2008-09-23 14:01:45 -0400 |
---|---|---|
committer | Avi Kivity <avi@redhat.com> | 2008-10-15 08:25:14 -0400 |
commit | a08546001c2b0f584ffc81987340943a7d6d6acb (patch) | |
tree | bec5b932a875d8137eef2ffa576dee8411284ca8 /arch/x86 | |
parent | 1f095610aabb9d54617901aa734d2a6093f2000c (diff) |
x86: pvclock: fix shadowed variable warning
arch/x86/kernel/pvclock.c:102:6: warning: symbol 'tsc_khz' shadows an earlier one
include/asm/tsc.h:18:21: originally declared here
Signed-off-by: Harvey Harrison <harvey.harrison@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Avi Kivity <avi@redhat.com>
Diffstat (limited to 'arch/x86')
-rw-r--r-- | arch/x86/kernel/pvclock.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/arch/x86/kernel/pvclock.c b/arch/x86/kernel/pvclock.c index 1c54b5fb7aed..4f9c55f3a7c0 100644 --- a/arch/x86/kernel/pvclock.c +++ b/arch/x86/kernel/pvclock.c | |||
@@ -99,14 +99,14 @@ static unsigned pvclock_get_time_values(struct pvclock_shadow_time *dst, | |||
99 | 99 | ||
100 | unsigned long pvclock_tsc_khz(struct pvclock_vcpu_time_info *src) | 100 | unsigned long pvclock_tsc_khz(struct pvclock_vcpu_time_info *src) |
101 | { | 101 | { |
102 | u64 tsc_khz = 1000000ULL << 32; | 102 | u64 pv_tsc_khz = 1000000ULL << 32; |
103 | 103 | ||
104 | do_div(tsc_khz, src->tsc_to_system_mul); | 104 | do_div(pv_tsc_khz, src->tsc_to_system_mul); |
105 | if (src->tsc_shift < 0) | 105 | if (src->tsc_shift < 0) |
106 | tsc_khz <<= -src->tsc_shift; | 106 | pv_tsc_khz <<= -src->tsc_shift; |
107 | else | 107 | else |
108 | tsc_khz >>= src->tsc_shift; | 108 | pv_tsc_khz >>= src->tsc_shift; |
109 | return tsc_khz; | 109 | return pv_tsc_khz; |
110 | } | 110 | } |
111 | 111 | ||
112 | cycle_t pvclock_clocksource_read(struct pvclock_vcpu_time_info *src) | 112 | cycle_t pvclock_clocksource_read(struct pvclock_vcpu_time_info *src) |