* [Kernel-janitors] [PATCH 2.6.9-rc2 26/38] net/orinoco_plx: replace
@ 2004-09-23 22:01 Nishanth Aravamudan
0 siblings, 0 replies; only message in thread
From: Nishanth Aravamudan @ 2004-09-23 22:01 UTC (permalink / raw)
To: kernel-janitors
[-- Attachment #1: Type: text/plain, Size: 788 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/net/wireless/orinoco_plx.c 2004-09-13 17:15:42.000000000 -0700
+++ 2.6.9-rc2/drivers/net/wireless/orinoco_plx.c 2004-09-23 14:59:42.000000000 -0700
@@ -136,6 +136,7 @@
#include <linux/list.h>
#include <linux/pci.h>
#include <linux/fcntl.h>
+#include <linux/delay.h>
#include <pcmcia/cisreg.h>
@@ -352,8 +353,7 @@ static int __init orinoco_plx_init(void)
static void __exit orinoco_plx_exit(void)
{
pci_unregister_driver(&orinoco_plx_driver);
- current->state = TASK_UNINTERRUPTIBLE;
- schedule_timeout(HZ);
+ ssleep(1);
}
module_init(orinoco_plx_init);
[-- 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] only message in thread
only message in thread, other threads:[~2004-09-23 22:01 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-09-23 22:01 [Kernel-janitors] [PATCH 2.6.9-rc2 26/38] net/orinoco_plx: 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.