Skip to content

Commit

Permalink
x86: check_tsc_warp() slowness fix
Browse files Browse the repository at this point in the history
100 million max # of loops is a bit too much - reduce it to 10 million.

Signed-off-by: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
  • Loading branch information
Ingo Molnar committed Jan 30, 2008
1 parent ade1af7 commit df43510
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions arch/x86/kernel/tsc_sync.c
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit df43510

Please sign in to comment.