Module Name: src
Committed By: jdolecek
Date: Sat Mar 3 19:21:59 UTC 2018
Modified Files:
src/sys/sys: once.h
Log Message:
mark the ONCE_DECL() variables as __read_mostly to optimize cache placement
To generate a diff of this commit:
cvs rdiff -u -r1.5 -r1.6 src/sys/sys/once.h
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sys/sys/once.h
diff -u src/sys/sys/once.h:1.5 src/sys/sys/once.h:1.6
--- src/sys/sys/once.h:1.5 Thu Oct 9 10:48:21 2008
+++ src/sys/sys/once.h Sat Mar 3 19:21:59 2018
@@ -1,4 +1,4 @@
-/* $NetBSD: once.h,v 1.5 2008/10/09 10:48:21 pooka Exp $ */
+/* $NetBSD: once.h,v 1.6 2018/03/03 19:21:59 jdolecek Exp $ */
/*-
* Copyright (c)2005 YAMAMOTO Takashi,
@@ -42,7 +42,7 @@ void once_init(void);
int _run_once(once_t *, int (*)(void));
#define ONCE_DECL(o) \
- once_t (o) = { \
+ once_t (o) __read_mostly = { \
.o_status = 0, \
};