Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/x86/x86 when warning about TSC going backwards, pro...
details: https://anonhg.NetBSD.org/src/rev/c9e83ee96b63
branches: trunk
changeset: 1021507:c9e83ee96b63
user: nia <nia%NetBSD.org@localhost>
date: Wed Jun 02 06:48:10 2021 +0000
description:
when warning about TSC going backwards, provide advice to the sysadmin.
diffstat:
sys/arch/x86/x86/tsc.c | 7 ++++---
1 files changed, 4 insertions(+), 3 deletions(-)
diffs (28 lines):
diff -r 6c9af48a9e7f -r c9e83ee96b63 sys/arch/x86/x86/tsc.c
--- a/sys/arch/x86/x86/tsc.c Wed Jun 02 01:48:08 2021 +0000
+++ b/sys/arch/x86/x86/tsc.c Wed Jun 02 06:48:10 2021 +0000
@@ -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 @@
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;
}
Home |
Main Index |
Thread Index |
Old Index