diff options
| author | Mitsuru IWASAKI <iwasaki@FreeBSD.org> | 2002-07-06 13:59:59 +0000 |
|---|---|---|
| committer | Mitsuru IWASAKI <iwasaki@FreeBSD.org> | 2002-07-06 13:59:59 +0000 |
| commit | c169fc477df8a2a76019d6abc86f8960a99e5b1a (patch) | |
| tree | 8e4eb101b5add5772cdc10e53bc2d9a692bbdb81 /sys/dev/acpica | |
| parent | 9a236af3adc50ac9b3bea3ba75aa37009986112b (diff) | |
Notes
Diffstat (limited to 'sys/dev/acpica')
| -rw-r--r-- | sys/dev/acpica/Osd/OsdSynch.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/acpica/Osd/OsdSynch.c b/sys/dev/acpica/Osd/OsdSynch.c index 0103d67f78f18..d273467848184 100644 --- a/sys/dev/acpica/Osd/OsdSynch.c +++ b/sys/dev/acpica/Osd/OsdSynch.c @@ -182,7 +182,7 @@ AcpiOsWaitSemaphore(ACPI_HANDLE Handle, UINT32 Units, UINT32 Timeout) "get %d units from semaphore %p (has %d), timeout %d\n", Units, as, as->as_units, Timeout)); for (;;) { - if (as->as_units == ACPI_NO_UNIT_LIMIT) { + if (as->as_maxunits == ACPI_NO_UNIT_LIMIT) { result = AE_OK; break; } @@ -297,7 +297,7 @@ AcpiOsSignalSemaphore(ACPI_HANDLE Handle, UINT32 Units) ACPI_DEBUG_PRINT((ACPI_DB_MUTEX, "return %d units to semaphore %p (has %d)\n", Units, as, as->as_units)); - if (as->as_units != ACPI_NO_UNIT_LIMIT) { + if (as->as_maxunits != ACPI_NO_UNIT_LIMIT) { as->as_units += Units; if (as->as_units > as->as_maxunits) as->as_units = as->as_maxunits; |
