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/8ce49d07b859
branches: trunk
changeset: 379476:8ce49d07b859
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 6f369a41a190 -r 8ce49d07b859 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 @@ 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;
}
Home |
Main Index |
Thread Index |
Old Index