summaryrefslogtreecommitdiffstats
path: root/sys/ia64
diff options
context:
space:
mode:
authorattilio <attilio@FreeBSD.org>2012-11-03 23:03:14 +0000
committerattilio <attilio@FreeBSD.org>2012-11-03 23:03:14 +0000
commitf3501b109e4c598688ec381ebd73e59c45bfa3b0 (patch)
tree6411bccb7372a8d587dd213ecf9a07e5207ee325 /sys/ia64
parent3f3e3a0702399e665a93253ca4b4b31c1754f09b (diff)
downloadFreeBSD-src-f3501b109e4c598688ec381ebd73e59c45bfa3b0.zip
FreeBSD-src-f3501b109e4c598688ec381ebd73e59c45bfa3b0.tar.gz
Rework the known rwlock to benefit about staying on their own
cache line in order to avoid manual frobbing but using struct rwlock_padalign. Reviewed by: alc, jimharris
Diffstat (limited to 'sys/ia64')
-rw-r--r--sys/ia64/ia64/pmap.c11
1 files changed, 1 insertions, 10 deletions
diff --git a/sys/ia64/ia64/pmap.c b/sys/ia64/ia64/pmap.c
index f71781c..594f8c6 100644
--- a/sys/ia64/ia64/pmap.c
+++ b/sys/ia64/ia64/pmap.c
@@ -214,16 +214,7 @@ static int pmap_ridmax;
static uint64_t *pmap_ridmap;
struct mtx pmap_ridmutex;
-/*
- * Isolate the global pv list lock from data and other locks to prevent false
- * sharing within the cache.
- */
-static struct {
- struct rwlock lock;
- char padding[CACHE_LINE_SIZE - sizeof(struct rwlock)];
-} pvh_global __aligned(CACHE_LINE_SIZE);
-
-#define pvh_global_lock pvh_global.lock
+static struct rwlock_padalign pvh_global_lock;
/*
* Data for the pv entry allocation mechanism
OpenPOWER on IntegriCloud