Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/uvm mark ubc_winshift and ubc_winsize as __read_mostly, ...



details:   https://anonhg.NetBSD.org/src/rev/1bb13fa70631
branches:  trunk
changeset: 831370:1bb13fa70631
user:      jdolecek <jdolecek%NetBSD.org@localhost>
date:      Mon Mar 26 21:43:30 2018 +0000

description:
mark ubc_winshift and ubc_winsize as __read_mostly, they are used often
so might benefit from cache placement

diffstat:

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

diffs (29 lines):

diff -r 7afa8eea3640 -r 1bb13fa70631 sys/uvm/uvm_bio.c
--- a/sys/uvm/uvm_bio.c Mon Mar 26 10:54:31 2018 +0000
+++ b/sys/uvm/uvm_bio.c Mon Mar 26 21:43:30 2018 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: uvm_bio.c,v 1.92 2018/02/09 09:07:13 maxv Exp $        */
+/*     $NetBSD: uvm_bio.c,v 1.93 2018/03/26 21:43:30 jdolecek Exp $    */
 
 /*
  * Copyright (c) 1998 Chuck Silvers.
@@ -34,7 +34,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: uvm_bio.c,v 1.92 2018/02/09 09:07:13 maxv Exp $");
+__KERNEL_RCSID(0, "$NetBSD: uvm_bio.c,v 1.93 2018/03/26 21:43:30 jdolecek Exp $");
 
 #include "opt_uvmhist.h"
 #include "opt_ubc.h"
@@ -112,8 +112,8 @@
 };
 
 int ubc_nwins = UBC_NWINS;
-int ubc_winshift = UBC_WINSHIFT;
-int ubc_winsize;
+int ubc_winshift __read_mostly = UBC_WINSHIFT;
+int ubc_winsize __read_mostly;
 #if defined(PMAP_PREFER)
 int ubc_nqueues;
 #define UBC_NQUEUES ubc_nqueues



Home | Main Index | Thread Index | Old Index