aboutsummaryrefslogtreecommitdiff
path: root/sys/amd64/include/vmparam.h
diff options
context:
space:
mode:
authorKip Macy <kmacy@FreeBSD.org>2010-04-30 00:46:43 +0000
committerKip Macy <kmacy@FreeBSD.org>2010-04-30 00:46:43 +0000
commit2965a4531505c497a6bbc6f2974499a520c75394 (patch)
tree250705d42bcb9b364f4fd2233c38faaadadf7ae0 /sys/amd64/include/vmparam.h
parent106b2e2ff2025f21388ba446ce5af0fe944db767 (diff)
downloadsrc-2965a4531505c497a6bbc6f2974499a520c75394.tar.gz
src-2965a4531505c497a6bbc6f2974499a520c75394.zip
On Alan's advice, rather than do a wholesale conversion on a single
architecture from page queue lock to a hashed array of page locks (based on a patch by Jeff Roberson), I've implemented page lock support in the MI code and have only moved vm_page's hold_count out from under page queue mutex to page lock. This changes pmap_extract_and_hold on all pmaps. Supported by: Bitgravity Inc. Discussed with: alc, jeffr, and kib
Notes
Notes: svn path=/head/; revision=207410
Diffstat (limited to 'sys/amd64/include/vmparam.h')
-rw-r--r--sys/amd64/include/vmparam.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/sys/amd64/include/vmparam.h b/sys/amd64/include/vmparam.h
index 0b5004c68189..6dbe37137677 100644
--- a/sys/amd64/include/vmparam.h
+++ b/sys/amd64/include/vmparam.h
@@ -145,6 +145,10 @@
#define VM_LEVEL_0_ORDER 9
#endif
+#ifdef SMP
+#define PA_LOCK_COUNT 256
+#endif
+
/*
* Virtual addresses of things. Derived from the page directory and
* page table indexes from pmap.h for precision.