message/device: replace schedule_timeout() with ssleep()
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(-)
drivers/message/i2o/device.c renamed from drivers/message/i2o/device.c~ssleep-drivers_message_i20_device +2 -2
@@ -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)
_