summaryrefslogtreecommitdiffstats
path: root/sys/i386/acpica
diff options
context:
space:
mode:
authoralc <alc@FreeBSD.org>2004-07-15 18:00:43 +0000
committeralc <alc@FreeBSD.org>2004-07-15 18:00:43 +0000
commit123cfa6b6464882431662931da12282fdae27c31 (patch)
tree69cdf9b62bb15fd8fb4fcd13d7dc53217029e5ad /sys/i386/acpica
parentc9b72f6bbfe07882de4c1ff97b23d8419bb01672 (diff)
downloadFreeBSD-src-123cfa6b6464882431662931da12282fdae27c31.zip
FreeBSD-src-123cfa6b6464882431662931da12282fdae27c31.tar.gz
Push down the acquisition and release of the page queues lock into
pmap_protect() and pmap_remove(). In general, they require the lock in order to modify a page's pv list or flags. In some cases, however, pmap_protect() can avoid acquiring the lock.
Diffstat (limited to 'sys/i386/acpica')
-rw-r--r--sys/i386/acpica/acpi_wakeup.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/sys/i386/acpica/acpi_wakeup.c b/sys/i386/acpica/acpi_wakeup.c
index fb06c16..57e3a22 100644
--- a/sys/i386/acpica/acpi_wakeup.c
+++ b/sys/i386/acpica/acpi_wakeup.c
@@ -273,9 +273,7 @@ acpi_sleep_machdep(struct acpi_softc *sc, int state)
}
out:
- vm_page_lock_queues();
pmap_remove(pm, sc->acpi_wakephys, sc->acpi_wakephys + PAGE_SIZE);
- vm_page_unlock_queues();
if (opage) {
pmap_enter(pm, sc->acpi_wakephys, page,
VM_PROT_READ | VM_PROT_WRITE, 0);
OpenPOWER on IntegriCloud