diff options
author | Ingo Molnar <mingo@elte.hu> | 2008-01-30 07:33:24 -0500 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2008-01-30 07:33:24 -0500 |
commit | ad8ca495bd3e03e6751fc0c6a6af44018ebb4036 (patch) | |
tree | 33dafcf26cad883f0eac2f4119408e60195614b1 | |
parent | df43510b18b8439465b4b58556f0495b5f5d771e (diff) |
x86: add warning to check_tsc_warp()
add warning to check_tsc_warp() - if get_cycles() does not progress.
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
-rw-r--r-- | arch/x86/kernel/tsc_sync.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/arch/x86/kernel/tsc_sync.c b/arch/x86/kernel/tsc_sync.c index 7110078f242c..0577825cf89b 100644 --- a/arch/x86/kernel/tsc_sync.c +++ b/arch/x86/kernel/tsc_sync.c | |||
@@ -87,7 +87,11 @@ static __cpuinit void check_tsc_warp(void) | |||
87 | nr_warps++; | 87 | nr_warps++; |
88 | __raw_spin_unlock(&sync_lock); | 88 | __raw_spin_unlock(&sync_lock); |
89 | } | 89 | } |
90 | 90 | } | |
91 | if (!(now-start)) { | ||
92 | printk("Warning: zero tsc calibration delta: %Ld [max: %Ld]\n", | ||
93 | now-start, end-start); | ||
94 | WARN_ON(1); | ||
91 | } | 95 | } |
92 | } | 96 | } |
93 | 97 | ||