Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit df43510b authored by Ingo Molnar's avatar Ingo Molnar
Browse files

x86: check_tsc_warp() slowness fix



100 million max # of loops is a bit too much - reduce it to 10 million.

Signed-off-by: default avatarIngo Molnar <mingo@elte.hu>
Signed-off-by: default avatarThomas Gleixner <tglx@linutronix.de>
parent ade1af77
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -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();