svn commit: r324788 - head/sys/amd64/amd64

Mateusz Guzik mjg at FreeBSD.org
Fri Oct 20 03:39:00 UTC 2017


Author: mjg
Date: Fri Oct 20 03:38:58 2017
New Revision: 324788
URL: https://svnweb.freebsd.org/changeset/base/324788

Log:
  amd64: __exclusive_cache_line pv_chunks_mutex and pv_list_locks
  
  Note that pv_list_locks is an array and currently it fits 2 locks per line.
  Resizing it and/or putting more locks in different lines requires several tests.
  
  MFC after:	1 week

Modified:
  head/sys/amd64/amd64/pmap.c

Modified: head/sys/amd64/amd64/pmap.c
==============================================================================
--- head/sys/amd64/amd64/pmap.c	Fri Oct 20 03:32:42 2017	(r324787)
+++ head/sys/amd64/amd64/pmap.c	Fri Oct 20 03:38:58 2017	(r324788)
@@ -380,8 +380,8 @@ static int pmap_initialized;
  * elements, but reads are not.
  */
 static TAILQ_HEAD(pch, pv_chunk) pv_chunks = TAILQ_HEAD_INITIALIZER(pv_chunks);
-static struct mtx pv_chunks_mutex;
-static struct rwlock pv_list_locks[NPV_LIST_LOCKS];
+static struct mtx __exclusive_cache_line pv_chunks_mutex;
+static struct rwlock __exclusive_cache_line pv_list_locks[NPV_LIST_LOCKS];
 static u_long pv_invl_gen[NPV_LIST_LOCKS];
 static struct md_page *pv_table;
 static struct md_page pv_dummy;


More information about the svn-src-head mailing list