Date: Fri, 18 May 2018 17:58:15 +0000 (UTC) From: Matt Macy <mmacy@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r333807 - head/sys/net Message-ID: <201805181758.w4IHwFuA008336@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: mmacy Date: Fri May 18 17:58:15 2018 New Revision: 333807 URL: https://svnweb.freebsd.org/changeset/base/333807 Log: epoch: move epoch variables to read mostly section Modified: head/sys/net/if.c Modified: head/sys/net/if.c ============================================================================== --- head/sys/net/if.c Fri May 18 17:58:09 2018 (r333806) +++ head/sys/net/if.c Fri May 18 17:58:15 2018 (r333807) @@ -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 <sys/mount.h> #include <compat/freebsd32/freebsd32.h>
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201805181758.w4IHwFuA008336>