]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
x86: pvclock: fix shadowed variable warning
authorHarvey Harrison <harvey.harrison@gmail.com>
Tue, 23 Sep 2008 18:01:45 +0000 (11:01 -0700)
committerAvi Kivity <avi@redhat.com>
Wed, 15 Oct 2008 12:25:14 +0000 (14:25 +0200)
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>
arch/x86/kernel/pvclock.c

index 1c54b5fb7aedb43b129651c3cbab8157fbe595f2..4f9c55f3a7c0f7e2590a5e248428bd19aa0d5c37 100644 (file)
@@ -99,14 +99,14 @@ static unsigned pvclock_get_time_values(struct pvclock_shadow_time *dst,
 
 unsigned long pvclock_tsc_khz(struct pvclock_vcpu_time_info *src)
 {
-       u64 tsc_khz = 1000000ULL << 32;
+       u64 pv_tsc_khz = 1000000ULL << 32;
 
-       do_div(tsc_khz, src->tsc_to_system_mul);
+       do_div(pv_tsc_khz, src->tsc_to_system_mul);
        if (src->tsc_shift < 0)
-               tsc_khz <<= -src->tsc_shift;
+               pv_tsc_khz <<= -src->tsc_shift;
        else
-               tsc_khz >>= src->tsc_shift;
-       return tsc_khz;
+               pv_tsc_khz >>= src->tsc_shift;
+       return pv_tsc_khz;
 }
 
 cycle_t pvclock_clocksource_read(struct pvclock_vcpu_time_info *src)