]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
x86-reduce-clock-calibration-time-during-slave-cpu-startup-fix
authorAndrew Morton <akpm@linux-foundation.org>
Mon, 24 Oct 2011 14:53:35 +0000 (01:53 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Mon, 7 Nov 2011 02:40:18 +0000 (13:40 +1100)
fix CONFIG_SMP=n build

arch/x86/kernel/tsc.c: In function 'calibrate_delay_is_known':
arch/x86/kernel/tsc.c:1012: error: 'struct cpuinfo_x86' has no member named 'phys_proc_id'
arch/x86/kernel/tsc.c:1012: error: 'struct cpuinfo_x86' has no member named 'phys_proc_id'
arch/x86/kernel/tsc.c:1006: warning: unused variable 'cpu'

Cc: "H. Peter Anvin" <hpa@zytor.com>
Cc: Ingo Molnar <mingo@redhat.com>
Cc: Jack Steiner <steiner@sgi.com>
Cc: John Stultz <john.stultz@linaro.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
arch/x86/kernel/tsc.c

index ade03e38d237fc5630205721fbf04148e44e1301..490fb330be87bae0239f523cfd20286e33edf9f6 100644 (file)
@@ -995,6 +995,7 @@ void __init tsc_init(void)
        check_system_tsc_reliable();
 }
 
+#ifdef CONFIG_SMP
 /*
  * If we have a constant TSC and are using the TSC for the delay loop,
  * we can skip clock calibration if another cpu in the same socket has already
@@ -1013,4 +1014,4 @@ unsigned long __cpuinit calibrate_delay_is_known(void)
                        return cpu_data(i).loops_per_jiffy;
        return 0;
 }
-
+#endif