Re: [PATCH] PnP Fixes for 2.6.10-rc1
From: Adam Belay
Date: Sun Oct 24 2004 - 23:54:28 EST
# 2004/10/24 23:27:24-04:00 nacc@xxxxxxxxxx
# [PNPBIOS] use msleep_interruptible()
#
# Description: Use msleep_interruptible() instead of
# schedule_timeout() to guarantee the task delays as expected.
#
# Signed-off-by: Nishanth Aravamudan <nacc@xxxxxxxxxx>
# Signed-off-by: Adam Belay <ambx1@xxxxxxxxxx>
diff -Nru a/drivers/pnp/pnpbios/core.c b/drivers/pnp/pnpbios/core.c
--- a/drivers/pnp/pnpbios/core.c 2004-10-25 00:08:14 -04:00
+++ b/drivers/pnp/pnpbios/core.c 2004-10-25 00:08:14 -04:00
@@ -60,6 +60,7 @@
#include <linux/completion.h>
#include <linux/spinlock.h>
#include <linux/dmi.h>
+#include <linux/delay.h>
#include <asm/page.h>
#include <asm/desc.h>
@@ -177,8 +178,7 @@
/*
* Poll every 2 seconds
*/
- set_current_state(TASK_INTERRUPTIBLE);
- schedule_timeout(HZ*2);
+ msleep_interruptible(2000);
if(signal_pending(current))
break;
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/