[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <1378921377.26153.26.camel@cliu38-desktop-build>
Date: Thu, 12 Sep 2013 01:42:57 +0800
From: Chuansheng Liu <chuansheng.liu@...el.com>
To: lenb@...nel.org, rjw@...k.pl
Cc: linux-acpi@...r.kernel.org, linux-kernel@...r.kernel.org,
zhuangzhi.li@...el.com, fei.li@...el.com, chuansheng.liu@...el.com
Subject: [PATCH] ACPI / osl: implement acpi_os_sleep() with msleep()
Currently the acpi_os_sleep() is using the schedule_timeout_interruptible(),
which can be interrupted by signal, which causes the real sleep time is shorter.
According to the ACPI spec:
The Sleep term is used to implement long-term timing requirements.
Execution is delayed for at least the required number of milliseconds.
The sleeping time should be at least of the required number msecs, here
using msleep() to implement it.
Also if the real time is shorter, we meet the device POWER ON issue.
CC: lizhuangzhi <zhuangzhi.li@...el.com>
CC: Li Fei <fei.li@...el.com>
Signed-off-by: liu chuansheng <chuansheng.liu@...el.com>
---
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 e5f416c..b1629b5 100644
--- a/drivers/acpi/osl.c
+++ b/drivers/acpi/osl.c
@@ -820,7 +820,7 @@ acpi_status acpi_os_remove_interrupt_handler(u32 irq, acpi_osd_handler handler)
void acpi_os_sleep(u64 ms)
{
- schedule_timeout_interruptible(msecs_to_jiffies(ms));
+ msleep(ms);
}
void acpi_os_stall(u32 us)
--
1.7.0.4
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists