From d71e30de40a3503bb178decad4e04aafb43839af Mon Sep 17 00:00:00 2001 From: Matt Macy Date: Fri, 18 May 2018 17:58:15 +0000 Subject: [PATCH] epoch: move epoch variables to read mostly section --- sys/net/if.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sys/net/if.c b/sys/net/if.c index 348495f612fb..598fc2a8ad8a 100644 --- a/sys/net/if.c +++ b/sys/net/if.c @@ -104,8 +104,8 @@ _Static_assert(sizeof(((struct ifreq *)0)->ifr_name) == offsetof(struct ifreq, ifr_ifru), "gap between ifr_name and ifr_ifru"); -epoch_t net_epoch_preempt; -epoch_t net_epoch; +__read_mostly epoch_t net_epoch_preempt; +__read_mostly epoch_t net_epoch; #ifdef COMPAT_FREEBSD32 #include #include