Re: [PATCH] I2C update for 2.6.10-rc1
From: Greg KH
Date: Tue Nov 09 2004 - 01:57:39 EST
ChangeSet 1.2014.1.6, 2004/11/05 13:41:16-08:00, johnpol@xxxxxxxxxxx
[PATCH] w1/w1_int: replace schedule_timeout() with 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: Evgeniy Polyakov <johnpol@xxxxxxxxxxx>
Signed-off-by: Greg Kroah-Hartman <greg@xxxxxxxxx>
drivers/w1/w1_int.c | 4 +---
1 files changed, 1 insertion(+), 3 deletions(-)
diff -Nru a/drivers/w1/w1_int.c b/drivers/w1/w1_int.c
--- a/drivers/w1/w1_int.c 2004-11-08 18:55:59 -08:00
+++ b/drivers/w1/w1_int.c 2004-11-08 18:55:59 -08:00
@@ -184,10 +184,8 @@
while (atomic_read(&dev->refcnt)) {
printk(KERN_INFO "Waiting for %s to become free: refcnt=%d.\n",
dev->name, atomic_read(&dev->refcnt));
- set_current_state(TASK_INTERRUPTIBLE);
- schedule_timeout(HZ);
- if (signal_pending(current))
+ if (msleep_interruptible(1000))
flush_signals(current);
}
-
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/