Commit f2baad26 authored by Andy Grover's avatar Andy Grover

ACPI: Correctly handle NMI watchdog during long stalls (Andrew Morton)

parent 7ebb7e5a
......@@ -35,6 +35,7 @@
#include <linux/kmod.h>
#include <linux/delay.h>
#include <linux/workqueue.h>
#include <linux/nmi.h>
#include <acpi/acpi.h>
#include <asm/io.h>
#include <acpi/acpi_bus.h>
......@@ -291,11 +292,14 @@ acpi_os_sleep(u32 sec, u32 ms)
void
acpi_os_stall(u32 us)
{
if (us > 10000) {
mdelay(us / 1000);
}
else {
udelay(us);
while (us) {
u32 delay = 1000;
if (delay > us)
delay = us;
udelay(delay);
touch_nmi_watchdog();
us -= delay;
}
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment