2004-09-24 03:40:00

by maximilian attems

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




Any comments would be appreciated.

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

Signed-off-by: Nishanth Aravamudan <[email protected]>

Signed-off-by: Maximilian Attems <[email protected]>
---

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)
_