All of lore.kernel.org
 help / color / mirror / Atom feed
* [Kernel-janitors] [PATCH 2.6.9-rc2 1/4] message/device: replace
@ 2004-09-20 22:12 Nishanth Aravamudan
  2004-09-20 23:57 ` [Kernel-janitors] [PATCH 2.6.9-rc2 1/4] mtd/amd_flash: replace Nishanth Aravamudan
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: Nishanth Aravamudan @ 2004-09-20 22:12 UTC (permalink / raw)
  To: kernel-janitors

[-- Attachment #1: Type: text/plain, Size: 704 bytes --]

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@us.ibm.com>

--- 2.6.9-rc2-vanilla/drivers/message/i2o/device.c	2004-09-13 17:16:08.000000000 -0700
+++ 2.6.9-rc2/drivers/message/i2o/device.c	2004-09-20 15:10:14.000000000 -0700
@@ -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)

[-- Attachment #2: Type: text/plain, Size: 167 bytes --]

_______________________________________________
Kernel-janitors mailing list
Kernel-janitors@lists.osdl.org
http://lists.osdl.org/mailman/listinfo/kernel-janitors

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2004-09-27 23:17 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-09-20 22:12 [Kernel-janitors] [PATCH 2.6.9-rc2 1/4] message/device: replace Nishanth Aravamudan
2004-09-20 23:57 ` [Kernel-janitors] [PATCH 2.6.9-rc2 1/4] mtd/amd_flash: replace Nishanth Aravamudan
2004-09-24 23:18 ` [Kernel-janitors] [PATCH 2.6.9-rc2 1/4] pci hotplug/cpqphp_ctrl: Nishanth Aravamudan
2004-09-27 17:24 ` [Kernel-janitors] [PATCH 2.6.9-rc2 1/4] sbus/aurora: replace Nishanth Aravamudan
2004-09-27 23:06 ` [Kernel-janitors] [PATCH 2.6.9-rc2 1/4] video/pxafb: replace Nishanth Aravamudan
2004-09-27 23:17 ` [Kernel-janitors] [PATCH 2.6.9-rc2 1/4] w1/dscore: replace Nishanth Aravamudan

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.