All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 5 of 5][ATM]: replace schedule_timeout() with msleep()
@ 2005-01-26 16:58 chas williams - CONTRACTOR
  2005-01-27  7:31 ` David S. Miller
  0 siblings, 1 reply; 2+ messages in thread
From: chas williams - CONTRACTOR @ 2005-01-26 16:58 UTC (permalink / raw)
  To: netdev; +Cc: davem

please apply to 2.6

thanks!

# This is a BitKeeper generated diff -Nru style patch.
#
# ChangeSet
#   2005/01/24 13:38:44-05:00 chas@relax.cmf.nrl.navy.mil 
#   [ATM]: replace schedule_timeout() with msleep()
#   
#     Signed-off-by: Nishanth Aravamudan <nacc@us.ibm.com>
#     Signed-off-by: Chas Williams <chas@cmf.nrl.navy.mil>
# 
# net/atm/resources.c
#   2005/01/24 13:38:27-05:00 chas@relax.cmf.nrl.navy.mil +2 -2
#   [ATM]: replace schedule_timeout() with msleep()
#   
#     Signed-off-by: Nishanth Aravamudan <nacc@us.ibm.com>
#     Signed-off-by: Chas Williams <chas@cmf.nrl.navy.mil>
# 
diff -Nru a/net/atm/resources.c b/net/atm/resources.c
--- a/net/atm/resources.c	2005-01-25 09:37:57 -05:00
+++ b/net/atm/resources.c	2005-01-25 09:37:57 -05:00
@@ -16,6 +16,7 @@
 #include <linux/kernel.h> /* for barrier */
 #include <linux/module.h>
 #include <linux/bitops.h>
+#include <linux/delay.h>
 #include <net/sock.h>	 /* for struct sock */
 
 #include "common.h"
@@ -139,8 +140,7 @@
 
         warning_time = jiffies;
         while (atomic_read(&dev->refcnt) != 1) {
-                current->state = TASK_INTERRUPTIBLE;
-                schedule_timeout(HZ / 4);
+                msleep(250);
                 if ((jiffies - warning_time) > 10 * HZ) {
                         printk(KERN_EMERG "atm_dev_deregister: waiting for "
                                "dev %d to become free. Usage count = %d\n",

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

* Re: [PATCH 5 of 5][ATM]: replace schedule_timeout() with msleep()
  2005-01-26 16:58 [PATCH 5 of 5][ATM]: replace schedule_timeout() with msleep() chas williams - CONTRACTOR
@ 2005-01-27  7:31 ` David S. Miller
  0 siblings, 0 replies; 2+ messages in thread
From: David S. Miller @ 2005-01-27  7:31 UTC (permalink / raw)
  To: chas; +Cc: netdev

On Wed, 26 Jan 2005 11:58:11 -0500
"chas williams - CONTRACTOR" <chas@cmf.nrl.navy.mil> wrote:

> please apply to 2.6

All 5 patches applied, thanks Chas.

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

end of thread, other threads:[~2005-01-27  7:31 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-01-26 16:58 [PATCH 5 of 5][ATM]: replace schedule_timeout() with msleep() chas williams - CONTRACTOR
2005-01-27  7:31 ` David S. Miller

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.