diff options
author | Len Brown <len.brown@intel.com> | 2006-01-27 17:18:29 -0500 |
---|---|---|
committer | Len Brown <len.brown@intel.com> | 2006-01-27 17:18:29 -0500 |
commit | 292dd876ee765c478b27c93cc51e93a558ed58bf (patch) | |
tree | 5b740e93253295baee2a9c414a6c66d03d44a9ef /drivers/acpi/osl.c | |
parent | d4ec6c7cc9a15a7a529719bc3b84f46812f9842e (diff) | |
parent | 9fdb62af92c741addbea15545f214a6e89460865 (diff) |
Pull release into acpica branch
Diffstat (limited to 'drivers/acpi/osl.c')
-rw-r--r-- | drivers/acpi/osl.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/acpi/osl.c b/drivers/acpi/osl.c index 58e7c47354ee..cc4a4903842a 100644 --- a/drivers/acpi/osl.c +++ b/drivers/acpi/osl.c | |||
@@ -204,11 +204,13 @@ acpi_os_map_memory(acpi_physical_address phys, acpi_size size, | |||
204 | 204 | ||
205 | return AE_OK; | 205 | return AE_OK; |
206 | } | 206 | } |
207 | EXPORT_SYMBOL_GPL(acpi_os_map_memory); | ||
207 | 208 | ||
208 | void acpi_os_unmap_memory(void __iomem * virt, acpi_size size) | 209 | void acpi_os_unmap_memory(void __iomem * virt, acpi_size size) |
209 | { | 210 | { |
210 | iounmap(virt); | 211 | iounmap(virt); |
211 | } | 212 | } |
213 | EXPORT_SYMBOL_GPL(acpi_os_unmap_memory); | ||
212 | 214 | ||
213 | #ifdef ACPI_FUTURE_USAGE | 215 | #ifdef ACPI_FUTURE_USAGE |
214 | acpi_status | 216 | acpi_status |
@@ -836,7 +838,7 @@ acpi_status acpi_os_wait_semaphore(acpi_handle handle, u32 units, u16 timeout) | |||
836 | static const int quantum_ms = 1000 / HZ; | 838 | static const int quantum_ms = 1000 / HZ; |
837 | 839 | ||
838 | ret = down_trylock(sem); | 840 | ret = down_trylock(sem); |
839 | for (i = timeout; (i > 0 && ret < 0); i -= quantum_ms) { | 841 | for (i = timeout; (i > 0 && ret != 0); i -= quantum_ms) { |
840 | schedule_timeout_interruptible(1); | 842 | schedule_timeout_interruptible(1); |
841 | ret = down_trylock(sem); | 843 | ret = down_trylock(sem); |
842 | } | 844 | } |