From: Ingo Molnar Date: Wed, 30 Jan 2008 12:33:24 +0000 (+0100) Subject: x86: add warning to check_tsc_warp() X-Git-Tag: v2.6.25-rc1~1143^2~219 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=ad8ca495bd3e03e6751fc0c6a6af44018ebb4036;p=linux-2.6-omap-h63xx.git x86: add warning to check_tsc_warp() add warning to check_tsc_warp() - if get_cycles() does not progress. Signed-off-by: Ingo Molnar Signed-off-by: Thomas Gleixner --- diff --git a/arch/x86/kernel/tsc_sync.c b/arch/x86/kernel/tsc_sync.c index 7110078f242..0577825cf89 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) nr_warps++; __raw_spin_unlock(&sync_lock); } - + } + if (!(now-start)) { + printk("Warning: zero tsc calibration delta: %Ld [max: %Ld]\n", + now-start, end-start); + WARN_ON(1); } }