Module Name: src
Committed By: nia
Date: Wed Jun 2 06:48:10 UTC 2021
Modified Files:
src/sys/arch/x86/x86: tsc.c
Log Message:
when warning about TSC going backwards, provide advice to the sysadmin.
To generate a diff of this commit:
cvs rdiff -u -r1.55 -r1.56 src/sys/arch/x86/x86/tsc.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sys/arch/x86/x86/tsc.c
diff -u src/sys/arch/x86/x86/tsc.c:1.55 src/sys/arch/x86/x86/tsc.c:1.56
--- src/sys/arch/x86/x86/tsc.c:1.55 Tue Jun 1 21:29:24 2021
+++ src/sys/arch/x86/x86/tsc.c Wed Jun 2 06:48:10 2021
@@ -1,4 +1,4 @@
-/* $NetBSD: tsc.c,v 1.55 2021/06/01 21:29:24 riastradh Exp $ */
+/* $NetBSD: tsc.c,v 1.56 2021/06/02 06:48:10 nia Exp $ */
/*-
* Copyright (c) 2008, 2020 The NetBSD Foundation, Inc.
@@ -27,7 +27,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: tsc.c,v 1.55 2021/06/01 21:29:24 riastradh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: tsc.c,v 1.56 2021/06/02 06:48:10 nia Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -427,7 +427,8 @@ tsc_get_timecount(struct timecounter *tc
ticks = getticks();
if (ticks - lastwarn >= hz) {
printf(
- "WARNING: TSC time went backwards by %u\n",
+ "WARNING: TSC time went backwards by %u - "
+ "change sysctl(7) kern.timecounter?\n",
(unsigned)(prev - cur));
lastwarn = ticks;
}