Source-Changes-HG archive

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

[src/trunk]: src/sys/uvm Give each of the page queue locks their own cache line.



details:   https://anonhg.NetBSD.org/src/rev/9103569a030f
branches:  trunk
changeset: 846776:9103569a030f
user:      ad <ad%NetBSD.org@localhost>
date:      Sun Dec 01 14:28:01 2019 +0000

description:
Give each of the page queue locks their own cache line.

diffstat:

 sys/uvm/uvm_init.c |  11 +++++------
 1 files changed, 5 insertions(+), 6 deletions(-)

diffs (32 lines):

diff -r 2275962b580a -r 9103569a030f sys/uvm/uvm_init.c
--- a/sys/uvm/uvm_init.c        Sun Dec 01 14:24:43 2019 +0000
+++ b/sys/uvm/uvm_init.c        Sun Dec 01 14:28:01 2019 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: uvm_init.c,v 1.49 2018/05/19 11:39:37 jdolecek Exp $   */
+/*     $NetBSD: uvm_init.c,v 1.50 2019/12/01 14:28:01 ad Exp $ */
 
 /*
  * Copyright (c) 1997 Charles D. Cranor and Washington University.
@@ -32,7 +32,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: uvm_init.c,v 1.49 2018/05/19 11:39:37 jdolecek Exp $");
+__KERNEL_RCSID(0, "$NetBSD: uvm_init.c,v 1.50 2019/12/01 14:28:01 ad Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -64,10 +64,9 @@
 const int * const uvmexp_pageshift = &uvmexp.pageshift;
 #endif
 
-kmutex_t uvm_pageqlock;
-kmutex_t uvm_fpageqlock;
-kmutex_t uvm_kentry_lock;
-kmutex_t uvm_swap_data_lock;
+kmutex_t uvm_pageqlock __cacheline_aligned;
+kmutex_t uvm_fpageqlock __cacheline_aligned;
+kmutex_t uvm_kentry_lock __cacheline_aligned;
 
 /*
  * uvm_md_init: Init dependant on the MD boot context.



Home | Main Index | Thread Index | Old Index