summaryrefslogtreecommitdiffstats
path: root/sys/vm
diff options
context:
space:
mode:
authoralc <alc@FreeBSD.org>2011-06-23 05:23:59 +0000
committeralc <alc@FreeBSD.org>2011-06-23 05:23:59 +0000
commite7ea911039376c32826c527f3b67a36fe18f420a (patch)
treeddc3296ed04f15e185785f74716fd48a5973d588 /sys/vm
parent6d4918e45e29c8527fe3383af8f33ef6ed977e35 (diff)
downloadFreeBSD-src-e7ea911039376c32826c527f3b67a36fe18f420a.zip
FreeBSD-src-e7ea911039376c32826c527f3b67a36fe18f420a.tar.gz
Revert to using the page queues lock in vm_page_clear_dirty_mask() on
MIPS. (At present, although atomic_clear_char() is defined by atomic.h on MIPS, it is not actually implemented by support.S.)
Diffstat (limited to 'sys/vm')
-rw-r--r--sys/vm/vm_fault.c3
-rw-r--r--sys/vm/vm_page.c3
2 files changed, 2 insertions, 4 deletions
diff --git a/sys/vm/vm_fault.c b/sys/vm/vm_fault.c
index 7568f57..55abe86 100644
--- a/sys/vm/vm_fault.c
+++ b/sys/vm/vm_fault.c
@@ -1095,8 +1095,7 @@ vm_fault_quick_hold_pages(vm_map_t map, vm_offset_t addr, vm_size_t len,
* required in order to call vm_page_dirty(). See
* vm_page_clear_dirty_mask().
*/
-#if defined(__amd64__) || defined(__i386__) || defined(__ia64__) || \
- defined(__mips__)
+#if defined(__amd64__) || defined(__i386__) || defined(__ia64__)
vm_page_dirty(*mp);
#else
vm_page_lock_queues();
diff --git a/sys/vm/vm_page.c b/sys/vm/vm_page.c
index 033c4c9..8e0c8bb 100644
--- a/sys/vm/vm_page.c
+++ b/sys/vm/vm_page.c
@@ -2336,8 +2336,7 @@ vm_page_clear_dirty_mask(vm_page_t m, int pagebits)
if ((m->oflags & VPO_BUSY) == 0 && (m->flags & PG_WRITEABLE) == 0)
m->dirty &= ~pagebits;
else {
-#if defined(__amd64__) || defined(__i386__) || defined(__ia64__) || \
- defined(__mips__)
+#if defined(__amd64__) || defined(__i386__) || defined(__ia64__)
/*
* On the aforementioned architectures, the page queues lock
* is not required by the following read-modify-write
OpenPOWER on IntegriCloud