From: domen@coderock.org
To: proski@gnu.org
Cc: hermes@gibson.dropbear.id.au, netdev@oss.sgi.com,
domen@coderock.org, nacc@us.ibm.com, janitor@sternwelten.at
Subject: [patch 1/2] net/orinoco_plx: replace schedule_timeout() with ssleep()
Date: Sun, 06 Mar 2005 23:21:40 +0100 [thread overview]
Message-ID: <20050306222140.6ACE51EC90@trashy.coderock.org> (raw)
Use ssleep() instead of schedule_timeout()
to guarantee the task delays as expected.
Signed-off-by: Nishanth Aravamudan <nacc@us.ibm.com>
Signed-off-by: Maximilian Attems <janitor@sternwelten.at>
Signed-off-by: Domen Puncer <domen@coderock.org>
---
kj-domen/drivers/net/wireless/orinoco_plx.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff -puN drivers/net/wireless/orinoco_plx.c~ssleep-drivers_net_wireless_orinoco_plx drivers/net/wireless/orinoco_plx.c
--- kj/drivers/net/wireless/orinoco_plx.c~ssleep-drivers_net_wireless_orinoco_plx 2005-03-05 16:09:49.000000000 +0100
+++ kj-domen/drivers/net/wireless/orinoco_plx.c 2005-03-05 16:09:49.000000000 +0100
@@ -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);
_
next reply other threads:[~2005-03-06 22:21 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-03-06 22:21 domen [this message]
2005-03-07 0:57 ` [patch 1/2] net/orinoco_plx: replace schedule_timeout() with ssleep() David Gibson
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20050306222140.6ACE51EC90@trashy.coderock.org \
--to=domen@coderock.org \
--cc=hermes@gibson.dropbear.id.au \
--cc=janitor@sternwelten.at \
--cc=nacc@us.ibm.com \
--cc=netdev@oss.sgi.com \
--cc=proski@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.