diff options
author | attilio <attilio@FreeBSD.org> | 2012-11-03 23:03:14 +0000 |
---|---|---|
committer | attilio <attilio@FreeBSD.org> | 2012-11-03 23:03:14 +0000 |
commit | f3501b109e4c598688ec381ebd73e59c45bfa3b0 (patch) | |
tree | 6411bccb7372a8d587dd213ecf9a07e5207ee325 /sys/mips | |
parent | 3f3e3a0702399e665a93253ca4b4b31c1754f09b (diff) | |
download | FreeBSD-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/mips')
-rw-r--r-- | sys/mips/mips/pmap.c | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/sys/mips/mips/pmap.c b/sys/mips/mips/pmap.c index 7737757..608546e 100644 --- a/sys/mips/mips/pmap.c +++ b/sys/mips/mips/pmap.c @@ -148,16 +148,7 @@ vm_offset_t kernel_vm_end = VM_MIN_KERNEL_ADDRESS; static void pmap_asid_alloc(pmap_t pmap); -/* - * 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 |