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

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

x86: add warning to check_tsc_warp()



add warning to check_tsc_warp() - if get_cycles() does not progress.

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