From: Ingo Molnar Date: Wed, 30 Jan 2008 12:33:23 +0000 (+0100) Subject: x86: check_tsc_warp() slowness fix X-Git-Tag: v2.6.25-rc1~1143^2~220 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=df43510b18b8439465b4b58556f0495b5f5d771e;p=linux-2.6-omap-h63xx.git x86: check_tsc_warp() slowness fix 100 million max # of loops is a bit too much - reduce it to 10 million. 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 ace340524c0..7110078f242 100644 --- a/arch/x86/kernel/tsc_sync.c +++ b/arch/x86/kernel/tsc_sync.c @@ -67,12 +67,12 @@ static __cpuinit void check_tsc_warp(void) /* * Be nice every now and then (and also check whether - * measurement is done [we also insert a 100 million + * measurement is done [we also insert a 10 million * loops safety exit, so we dont lock up in case the * TSC readout is totally broken]): */ if (unlikely(!(i & 7))) { - if (now > end || i > 100000000) + if (now > end || i > 10000000) break; cpu_relax(); touch_nmi_watchdog();