diff options
Diffstat (limited to 'drivers/acpi/osl.c')
-rw-r--r-- | drivers/acpi/osl.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/drivers/acpi/osl.c b/drivers/acpi/osl.c index d528c750a380..e3cd0b16031a 100644 --- a/drivers/acpi/osl.c +++ b/drivers/acpi/osl.c | |||
@@ -313,8 +313,7 @@ acpi_status acpi_os_remove_interrupt_handler(u32 irq, acpi_osd_handler handler) | |||
313 | 313 | ||
314 | void acpi_os_sleep(acpi_integer ms) | 314 | void acpi_os_sleep(acpi_integer ms) |
315 | { | 315 | { |
316 | current->state = TASK_INTERRUPTIBLE; | 316 | schedule_timeout_interruptible(msecs_to_jiffies(ms)); |
317 | schedule_timeout(((signed long)ms * HZ) / 1000); | ||
318 | } | 317 | } |
319 | 318 | ||
320 | EXPORT_SYMBOL(acpi_os_sleep); | 319 | EXPORT_SYMBOL(acpi_os_sleep); |
@@ -838,8 +837,7 @@ acpi_status acpi_os_wait_semaphore(acpi_handle handle, u32 units, u16 timeout) | |||
838 | 837 | ||
839 | ret = down_trylock(sem); | 838 | ret = down_trylock(sem); |
840 | for (i = timeout; (i > 0 && ret < 0); i -= quantum_ms) { | 839 | for (i = timeout; (i > 0 && ret < 0); i -= quantum_ms) { |
841 | current->state = TASK_INTERRUPTIBLE; | 840 | schedule_timeout_interruptible(1); |
842 | schedule_timeout(1); | ||
843 | ret = down_trylock(sem); | 841 | ret = down_trylock(sem); |
844 | } | 842 | } |
845 | 843 | ||