Module Name:    src
Committed By:   ad
Date:           Sun Dec  1 14:28:01 UTC 2019

Modified Files:
        src/sys/uvm: uvm_init.c

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


To generate a diff of this commit:
cvs rdiff -u -r1.49 -r1.50 src/sys/uvm/uvm_init.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/uvm/uvm_init.c
diff -u src/sys/uvm/uvm_init.c:1.49 src/sys/uvm/uvm_init.c:1.50
--- src/sys/uvm/uvm_init.c:1.49	Sat May 19 11:39:37 2018
+++ src/sys/uvm/uvm_init.c	Sun Dec  1 14:28:01 2019
@@ -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_pagemask = &uvm
 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.

Reply via email to