Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 20 Oct 2017 03:38:58 +0000 (UTC)
From:      Mateusz Guzik <mjg@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r324788 - head/sys/amd64/amd64
Message-ID:  <201710200338.v9K3cwe1016734@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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;



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201710200338.v9K3cwe1016734>