]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
MPSAFE locking
authorNate Lawson <njl@FreeBSD.org>
Fri, 13 Aug 2004 06:22:10 +0000 (06:22 +0000)
committerNate Lawson <njl@FreeBSD.org>
Fri, 13 Aug 2004 06:22:10 +0000 (06:22 +0000)
commitd317428f4440598f1f8a67f08dd0e19d7da6d487
tree8b4dcb8b4572671cc7a5824a802119cf68681285
parentbbf7c27a9c9f62647c11b237856d6fbb3dd3dfd2
MPSAFE locking

* Serialize acpi_pwr_switch_consumer() and acpi_pwr_wake_enable().
* Make acpi_pwr_switch_consumer() have a single exit point.
* Add assertions to the leaf functions they call.
* Fix a memory leak in acpi_pwr_deregister_consumer().  However, it is
  currently ifdefed out so this code was unused.
sys/dev/acpica/acpi_powerres.c