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>
This commit is contained in:
parent
df43510b18
commit
ad8ca495bd
1 changed files with 5 additions and 1 deletions
|
@ -87,7 +87,11 @@ static __cpuinit void check_tsc_warp(void)
|
||||||
nr_warps++;
|
nr_warps++;
|
||||||
__raw_spin_unlock(&sync_lock);
|
__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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue