diff options
Diffstat (limited to 'arch/x86/kernel/tsc_sync.c')
| -rw-r--r-- | arch/x86/kernel/tsc_sync.c | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/arch/x86/kernel/tsc_sync.c b/arch/x86/kernel/tsc_sync.c index f37930954d15..eed156851f5d 100644 --- a/arch/x86/kernel/tsc_sync.c +++ b/arch/x86/kernel/tsc_sync.c | |||
| @@ -114,13 +114,12 @@ void __cpuinit check_tsc_sync_source(int cpu) | |||
| 114 | return; | 114 | return; |
| 115 | 115 | ||
| 116 | if (boot_cpu_has(X86_FEATURE_TSC_RELIABLE)) { | 116 | if (boot_cpu_has(X86_FEATURE_TSC_RELIABLE)) { |
| 117 | printk_once(KERN_INFO "Skipping synchronization checks as TSC is reliable.\n"); | 117 | if (cpu == (nr_cpu_ids-1) || system_state != SYSTEM_BOOTING) |
| 118 | pr_info( | ||
| 119 | "Skipped synchronization checks as TSC is reliable.\n"); | ||
| 118 | return; | 120 | return; |
| 119 | } | 121 | } |
| 120 | 122 | ||
| 121 | pr_info("checking TSC synchronization [CPU#%d -> CPU#%d]:", | ||
| 122 | smp_processor_id(), cpu); | ||
| 123 | |||
| 124 | /* | 123 | /* |
| 125 | * Reset it - in case this is a second bootup: | 124 | * Reset it - in case this is a second bootup: |
| 126 | */ | 125 | */ |
| @@ -142,12 +141,14 @@ void __cpuinit check_tsc_sync_source(int cpu) | |||
| 142 | cpu_relax(); | 141 | cpu_relax(); |
| 143 | 142 | ||
| 144 | if (nr_warps) { | 143 | if (nr_warps) { |
| 145 | printk("\n"); | 144 | pr_warning("TSC synchronization [CPU#%d -> CPU#%d]:\n", |
| 145 | smp_processor_id(), cpu); | ||
| 146 | pr_warning("Measured %Ld cycles TSC warp between CPUs, " | 146 | pr_warning("Measured %Ld cycles TSC warp between CPUs, " |
| 147 | "turning off TSC clock.\n", max_warp); | 147 | "turning off TSC clock.\n", max_warp); |
| 148 | mark_tsc_unstable("check_tsc_sync_source failed"); | 148 | mark_tsc_unstable("check_tsc_sync_source failed"); |
| 149 | } else { | 149 | } else { |
| 150 | printk(" passed.\n"); | 150 | pr_debug("TSC synchronization [CPU#%d -> CPU#%d]: passed\n", |
| 151 | smp_processor_id(), cpu); | ||
| 151 | } | 152 | } |
| 152 | 153 | ||
| 153 | /* | 154 | /* |
