Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 145733
b: refs/heads/master
c: 643bec9
h: refs/heads/master
i:
  145731: 4e17d47
v: v3
  • Loading branch information
Ingo Molnar committed May 7, 2009
1 parent dbf15d5 commit 2c4e717
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 9 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 975e5f45500dff6d15c0001bb662e9aac0ce0076
refs/heads/master: 643bec956544d376b7c2a80a3d5c3d0bf94da8d3
14 changes: 6 additions & 8 deletions trunk/arch/x86/kernel/tsc_sync.c
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ static __cpuinitdata atomic_t stop_count;
* of a critical section, to be able to prove TSC time-warps:
*/
static __cpuinitdata raw_spinlock_t sync_lock = __RAW_SPIN_LOCK_UNLOCKED;

static __cpuinitdata cycles_t last_tsc;
static __cpuinitdata cycles_t max_warp;
static __cpuinitdata int nr_warps;
Expand Down Expand Up @@ -113,13 +114,12 @@ void __cpuinit check_tsc_sync_source(int cpu)
return;

if (boot_cpu_has(X86_FEATURE_TSC_RELIABLE)) {
printk(KERN_INFO
"Skipping synchronization checks as TSC is reliable.\n");
pr_info("Skipping synchronization checks as TSC is reliable.\n");
return;
}

printk(KERN_INFO "checking TSC synchronization [CPU#%d -> CPU#%d]:",
smp_processor_id(), cpu);
pr_info("checking TSC synchronization [CPU#%d -> CPU#%d]:",
smp_processor_id(), cpu);

/*
* Reset it - in case this is a second bootup:
Expand All @@ -143,8 +143,8 @@ void __cpuinit check_tsc_sync_source(int cpu)

if (nr_warps) {
printk("\n");
printk(KERN_WARNING "Measured %Ld cycles TSC warp between CPUs,"
" turning off TSC clock.\n", max_warp);
pr_warning("Measured %Ld cycles TSC warp between CPUs, "
"turning off TSC clock.\n", max_warp);
mark_tsc_unstable("check_tsc_sync_source failed");
} else {
printk(" passed.\n");
Expand Down Expand Up @@ -195,5 +195,3 @@ void __cpuinit check_tsc_sync_target(void)
while (atomic_read(&stop_count) != cpus)
cpu_relax();
}
#undef NR_LOOPS

0 comments on commit 2c4e717

Please sign in to comment.