[patch 3/3] message/device: replace schedule_timeout() with ssleep()

From: janitor
Date: Thu Sep 23 2004 - 23:03:56 EST





Any comments would be appreciated.

Description: Use ssleep() instead of schedule_timeout()
to guarantee the task delays as expected.

Signed-off-by: Nishanth Aravamudan <nacc@xxxxxxxxxx>

Signed-off-by: Maximilian Attems <janitor@xxxxxxxxxxxxxx>
---

linux-2.6.9-rc2-bk7-max/drivers/message/i2o/device.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)

diff -puN drivers/message/i2o/device.c~ssleep-drivers_message_i20_device drivers/message/i2o/device.c
--- linux-2.6.9-rc2-bk7/drivers/message/i2o/device.c~ssleep-drivers_message_i20_device 2004-09-21 21:17:35.000000000 +0200
+++ linux-2.6.9-rc2-bk7-max/drivers/message/i2o/device.c 2004-09-21 21:17:35.000000000 +0200
@@ -15,6 +15,7 @@

#include <linux/module.h>
#include <linux/i2o.h>
+#include <linux/delay.h>

/* Exec OSM functions */
extern struct bus_type i2o_bus_type;
@@ -106,8 +107,7 @@ int i2o_device_claim_release(struct i2o_
if (!rc)
break;

- set_current_state(TASK_UNINTERRUPTIBLE);
- schedule_timeout(HZ);
+ ssleep(1);
}

if (!rc)
_
-
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/