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): No static; committed wrong version ...



details:   https://anonhg.NetBSD.org/src/rev/82b7a9a793f9
branches:  trunk
changeset: 377565:82b7a9a793f9
user:      riastradh <riastradh%NetBSD.org@localhost>
date:      Mon Jul 17 13:48:14 2023 +0000

description:
timecounter(9): No static; committed wrong version of patch.

diffstat:

 sys/kern/kern_tc.c |  8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diffs (29 lines):

diff -r f7a11e46998b -r 82b7a9a793f9 sys/kern/kern_tc.c
--- a/sys/kern/kern_tc.c        Mon Jul 17 13:44:24 2023 +0000
+++ b/sys/kern/kern_tc.c        Mon Jul 17 13:48:14 2023 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: kern_tc.c,v 1.68 2023/07/17 13:44:24 riastradh Exp $ */
+/* $NetBSD: kern_tc.c,v 1.69 2023/07/17 13:48:14 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.68 2023/07/17 13:44:24 riastradh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: kern_tc.c,v 1.69 2023/07/17 13:48:14 riastradh Exp $");
 
 #ifdef _KERNEL_OPT
 #include "opt_ntp.h"
@@ -135,8 +135,8 @@ struct timecounter *timecounter = &dummy
 static struct timecounter *timecounters = &dummy_timecounter;
 
 #ifdef __HAVE_ATOMIC64_LOADSTORE
-static volatile time_t time__second __cacheline_aligned = 1;
-static volatile time_t time__uptime __cacheline_aligned = 1;
+volatile time_t time__second __cacheline_aligned = 1;
+volatile time_t time__uptime __cacheline_aligned = 1;
 #else
 static volatile struct {
        uint32_t lo, hi;



Home | Main Index | Thread Index | Old Index