summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorjdolecek <jdolecek@NetBSD.org>2018-03-03 19:21:59 +0000
committerjdolecek <jdolecek@NetBSD.org>2018-03-03 19:21:59 +0000
commit10e68c445a57420ca4c2da8122a50c8b80850d04 (patch)
tree3b8a887cf20e6485d6ba1f9aab2522b02f102c6a /sys
parentb324faa16e8c8ad442dfee1440625f785c5fd08e (diff)
mark the ONCE_DECL() variables as __read_mostly to optimize cache placement
Diffstat (limited to 'sys')
-rw-r--r--sys/sys/once.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/sys/once.h b/sys/sys/once.h
index ed52b2f676a..bceaae2306e 100644
--- a/sys/sys/once.h
+++ b/sys/sys/once.h
@@ -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, \
};