Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/kern timecounter(9): Fix thinko in previous.
details: https://anonhg.NetBSD.org/src/rev/39879d996306
branches: trunk
changeset: 377560:39879d996306
user: riastradh <riastradh%NetBSD.org@localhost>
date: Mon Jul 17 13:29:12 2023 +0000
description:
timecounter(9): Fix thinko in previous.
Swapped the wrong variable in this mental macro expansion!
diffstat:
sys/kern/kern_tc.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r 712122404dd0 -r 39879d996306 sys/kern/kern_tc.c
--- a/sys/kern/kern_tc.c Mon Jul 17 12:57:05 2023 +0000
+++ b/sys/kern/kern_tc.c Mon Jul 17 13:29:12 2023 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: kern_tc.c,v 1.63 2023/07/17 12:55:20 riastradh Exp $ */
+/* $NetBSD: kern_tc.c,v 1.64 2023/07/17 13:29:12 riastradh Exp $ */
/*-
* Copyright (c) 2008, 2009 The NetBSD Foundation, Inc.
@@ -40,7 +40,7 @@
#include <sys/cdefs.h>
/* __FBSDID("$FreeBSD: src/sys/kern/kern_tc.c,v 1.166 2005/09/19 22:16:31 andre Exp $"); */
-__KERNEL_RCSID(0, "$NetBSD: kern_tc.c,v 1.63 2023/07/17 12:55:20 riastradh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: kern_tc.c,v 1.64 2023/07/17 13:29:12 riastradh Exp $");
#ifdef _KERNEL_OPT
#include "opt_ntp.h"
@@ -193,7 +193,7 @@ setrealuptime(time_t second, time_t upti
atomic_store_relaxed(&time__uptime32.lo, uplo);
membar_producer();
atomic_store_relaxed(&time__second32.hi, sechi);
- atomic_store_relaxed(&time__second32.lo, seclo);
+ atomic_store_relaxed(&time__uptime32.hi, uphi);
}
time_t
Home |
Main Index |
Thread Index |
Old Index