diff options
-rw-r--r-- | drivers/acpi/osl.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/acpi/osl.c b/drivers/acpi/osl.c index e3cd0b16031a..8653dac01a76 100644 --- a/drivers/acpi/osl.c +++ b/drivers/acpi/osl.c | |||
@@ -836,7 +836,7 @@ acpi_status acpi_os_wait_semaphore(acpi_handle handle, u32 units, u16 timeout) | |||
836 | static const int quantum_ms = 1000 / HZ; | 836 | static const int quantum_ms = 1000 / HZ; |
837 | 837 | ||
838 | ret = down_trylock(sem); | 838 | ret = down_trylock(sem); |
839 | for (i = timeout; (i > 0 && ret < 0); i -= quantum_ms) { | 839 | for (i = timeout; (i > 0 && ret != 0); i -= quantum_ms) { |
840 | schedule_timeout_interruptible(1); | 840 | schedule_timeout_interruptible(1); |
841 | ret = down_trylock(sem); | 841 | ret = down_trylock(sem); |
842 | } | 842 | } |