All of lore.kernel.org
 help / color / mirror / Atom feed
* [Kernel-janitors] [PATCH 2.6.9-rc1-bk7] dtlk: replace
@ 2004-09-01 22:22 Nishanth Aravamudan
  2004-09-01 22:31 ` [Kernel-janitors] [PATCH 2.6.9-rc1-bk7] i2c-algo-ite: remove Nishanth Aravamudan
                   ` (7 more replies)
  0 siblings, 8 replies; 9+ messages in thread
From: Nishanth Aravamudan @ 2004-09-01 22:22 UTC (permalink / raw)
  To: kernel-janitors

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

This is one of 10 patches which have either not been pushed to mainline
(2.6.9-rc1-bk7) or have not been included in any of the recent kjt's.

Applys-to: 2.6.9-rc1-bk7

Description: Uses msleep() instead of schedule_timeout() to guarantee
the task delays at least the desired time amount.

Signed-off-by: Nishanth Aravamudan <nacc@us.ibm.com>


--- 2.6.9-rc1-bk7-vanilla/drivers/char/dtlk.c	2004-08-31 21:26:38.000000000 +0000
+++ 2.6.9-rc1-bk7-dev/drivers/char/dtlk.c	2004-09-01 22:06:19.000000000 +0000
@@ -55,7 +55,7 @@
 #include <linux/mm.h>		/* for verify_area */
 #include <linux/errno.h>	/* for -EBUSY */
 #include <linux/ioport.h>	/* for request_region */
-#include <linux/delay.h>	/* for loops_per_jiffy */
+#include <linux/delay.h>	/* for loops_per_jiffy, msleep */
 #include <asm/io.h>		/* for inb_p, outb_p, inb, outb, etc. */
 #include <asm/uaccess.h>	/* for get_user, etc. */
 #include <linux/wait.h>		/* for wait_queue */
@@ -107,7 +107,6 @@ static struct file_operations dtlk_fops 
 };
 
 /* local prototypes */
-static void dtlk_delay(int ms);
 static int dtlk_dev_probe(void);
 static struct dtlk_settings *dtlk_interrogate(void);
 static int dtlk_readable(void);
@@ -146,7 +145,7 @@ static ssize_t dtlk_read(struct file *fi
 			return i;
 		if (file->f_flags & O_NONBLOCK)
 			break;
-		dtlk_delay(100);
+		msleep(100);
 	}
 	if (retries == loops_per_jiffy)
 		printk(KERN_ERR "dtlk_read times out\n");
@@ -191,7 +190,7 @@ static ssize_t dtlk_write(struct file *f
 				   rate to 500 bytes/sec, but that's
 				   still enough to keep up with the
 				   speech synthesizer. */
-				dtlk_delay(1);
+				msleep(1);
 			else {
 				/* the RDY bit goes zero 2-3 usec
 				   after writing, and goes 1 again
@@ -212,7 +211,7 @@ static ssize_t dtlk_write(struct file *f
 		if (file->f_flags & O_NONBLOCK)
 			break;
 
-		dtlk_delay(1);
+		msleep(1);
 
 		if (++retries > 10 * HZ) { /* wait no more than 10 sec
 					      from last write */
@@ -368,13 +367,6 @@ module_exit(dtlk_cleanup);
 
 /* ------------------------------------------------------------------------ */
 
-/* sleep for ms milliseconds */
-static void dtlk_delay(int ms)
-{
-	current->state = TASK_INTERRUPTIBLE;
-	schedule_timeout((ms * HZ + 1000 - HZ) / 1000);
-}
-
 static int dtlk_readable(void)
 {
 #ifdef TRACING
@@ -431,7 +423,7 @@ static int __init dtlk_dev_probe(void)
 			/* posting an index takes 18 msec.  Here, we
 			   wait up to 100 msec to see whether it
 			   appears. */
-			dtlk_delay(100);
+			msleep(100);
 			dtlk_has_indexing = dtlk_readable();
 #ifdef TRACING
 			printk(", indexing %d\n", dtlk_has_indexing);

[-- 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] 9+ messages in thread

* [Kernel-janitors] [PATCH 2.6.9-rc1-bk7] i2c-algo-ite: remove
  2004-09-01 22:22 [Kernel-janitors] [PATCH 2.6.9-rc1-bk7] dtlk: replace Nishanth Aravamudan
@ 2004-09-01 22:31 ` Nishanth Aravamudan
  2004-09-01 22:36 ` [Kernel-janitors] [PATCH 2.6.9-rc1-bk7] isdn/act2000_isa: remove Nishanth Aravamudan
                   ` (6 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: Nishanth Aravamudan @ 2004-09-01 22:31 UTC (permalink / raw)
  To: kernel-janitors

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

This is one of 10 patches which have either not been pushed to mainline
(2.6.9-rc1-bk7) or have not been included in any of the recent kjt's.

Applys-to: 2.6.9-rc1-bk7

Description: Removes unused function iic_sleep().

Signed-off-by: Nishanth Aravamudan <nacc@us.ibm.com>

--- 2.6.9-rc1-bk7-vanilla/drivers/i2c/algos/i2c-algo-ite.c	2004-08-31 21:32:25.000000000 +0000
+++ 2.6.9-rc1-bk7-dev/drivers/i2c/algos/i2c-algo-ite.c	2004-09-01 22:10:04.000000000 +0000
@@ -107,14 +107,6 @@ static int wait_for_bb(struct i2c_algo_i
 	return(timeout<=0);
 }
 
-/*
- * Puts this process to sleep for a period equal to timeout 
- */
-static inline void iic_sleep(unsigned long timeout)
-{
-	schedule_timeout( timeout * HZ);
-}
-
 /* After we issue a transaction on the IIC bus, this function
  * is called.  It puts this process to sleep until we get an interrupt from
  * from the controller telling us that the transaction we requested in complete.

[-- 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] 9+ messages in thread

* [Kernel-janitors] [PATCH 2.6.9-rc1-bk7] isdn/act2000_isa: remove
  2004-09-01 22:22 [Kernel-janitors] [PATCH 2.6.9-rc1-bk7] dtlk: replace Nishanth Aravamudan
  2004-09-01 22:31 ` [Kernel-janitors] [PATCH 2.6.9-rc1-bk7] i2c-algo-ite: remove Nishanth Aravamudan
@ 2004-09-01 22:36 ` Nishanth Aravamudan
  2004-09-01 22:47 ` [Kernel-janitors] [PATCH 2.6.9-rc1-bk7] isdn/sc/hardware: remove Nishanth Aravamudan
                   ` (5 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: Nishanth Aravamudan @ 2004-09-01 22:36 UTC (permalink / raw)
  To: kernel-janitors

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

This is one of 10 patches which have either not been pushed to mainline
(2.6.9-rc1-bk7) or have not been included in any of the recent kjt's.

Applys-to: 2.6.9-rc1-bk7

Description: Removes isa_delay() and replaces invocations thereof with
appropriate calls to msleep() to guarantee the task delays as requested.

Signed-off-by: Nishanth Aravamudan <nacc@us.ibm.com>


--- 2.6.9-rc1-bk7-vanilla/drivers/isdn/act2000/act2000_isa.c	2004-08-31 21:26:46.000000000 +0000
+++ 2.6.9-rc1-bk7-dev/drivers/isdn/act2000/act2000_isa.c	2004-09-01 22:11:37.000000000 +0000
@@ -18,13 +18,6 @@
 
 static act2000_card *irq2card_map[16];
 
-static void
-act2000_isa_delay(long t)
-{
-        set_current_state(TASK_INTERRUPTIBLE);
-        schedule_timeout(t);
-}
-
 /*
  * Reset Controller, then try to read the Card's signature.
  + Return:
@@ -419,7 +412,7 @@ act2000_isa_download(act2000_card * card
 
         if (!act2000_isa_reset(card->port))
                 return -ENXIO;
-        act2000_isa_delay(HZ / 2);
+        msleep(500);
         if(copy_from_user(&cblock, cb, sizeof(cblock)))
         	return -EFAULT;
         length = cblock.length;
@@ -449,6 +442,6 @@ act2000_isa_download(act2000_card * card
                 p += l;
         }
         kfree(buf);
-        act2000_isa_delay(HZ / 2);
+        msleep(500);
         return (act2000_isa_getid(card));
 }

[-- 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] 9+ messages in thread

* [Kernel-janitors] [PATCH 2.6.9-rc1-bk7] isdn/sc/hardware: remove
  2004-09-01 22:22 [Kernel-janitors] [PATCH 2.6.9-rc1-bk7] dtlk: replace Nishanth Aravamudan
  2004-09-01 22:31 ` [Kernel-janitors] [PATCH 2.6.9-rc1-bk7] i2c-algo-ite: remove Nishanth Aravamudan
  2004-09-01 22:36 ` [Kernel-janitors] [PATCH 2.6.9-rc1-bk7] isdn/act2000_isa: remove Nishanth Aravamudan
@ 2004-09-01 22:47 ` Nishanth Aravamudan
  2004-09-01 22:50 ` [Kernel-janitors] [PATCH 2.6.9-rc1-bk7] message/mptbase: replace Nishanth Aravamudan
                   ` (4 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: Nishanth Aravamudan @ 2004-09-01 22:47 UTC (permalink / raw)
  To: kernel-janitors

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

This is one of 10 patches which have either not been pushed to mainline
(2.6.9-rc1-bk7) or have not been included in any of the recent kjt's.

Applys-to: 2.6.9-rc1-bk7

Depends-on: 2.6.9-rc1-bk7-kjt1 patch, which removes usage of
milliseconds() from init.c and card.h.

Description: Removes milliseconds() macro. msecs_to_jiffies() [#include
<linux/time.h>] should be used instead.

Signed-off-by: Nishanth Aravamudan <nacc@us.ibm.com>


--- 2.6.9-rc1-bk7-vanilla/drivers/isdn/sc/hardware.h	2004-08-31 21:26:46.000000000 +0000
+++ 2.6.9-rc1-bk7-dev/drivers/isdn/sc/hardware.h	2004-09-01 21:42:28.000000000 +0000
@@ -104,9 +104,6 @@
  * Some handy macros
  */
 
-/* Return the number of jiffies in a given number of msecs */
-#define milliseconds(x)	(((x)*HZ)/1000)
-
 /* Determine if a channel number is valid for the adapter */
 #define IS_VALID_CHANNEL(y,x)	((x>0) && (x <= sc_adapter[y]->channels))
 

[-- 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] 9+ messages in thread

* [Kernel-janitors] [PATCH 2.6.9-rc1-bk7] message/mptbase: replace
  2004-09-01 22:22 [Kernel-janitors] [PATCH 2.6.9-rc1-bk7] dtlk: replace Nishanth Aravamudan
                   ` (2 preceding siblings ...)
  2004-09-01 22:47 ` [Kernel-janitors] [PATCH 2.6.9-rc1-bk7] isdn/sc/hardware: remove Nishanth Aravamudan
@ 2004-09-01 22:50 ` Nishanth Aravamudan
  2004-09-01 22:53 ` [Kernel-janitors] [PATCH 2.6.9-rc1-bk7] pcmcia/yenta_socket: Nishanth Aravamudan
                   ` (3 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: Nishanth Aravamudan @ 2004-09-01 22:50 UTC (permalink / raw)
  To: kernel-janitors

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

This is one of 10 patches which have either not been pushed to mainline
(2.6.9-rc1-bk7) or have not been included in any of the recent kjt's.

Applys-to: 2.6.9-rc1-bk7

Description: Uses msleep() instead of schedule_timeout() to guarantee
the task delays as desired. Fixed for 2.6.9-rc1-bk7.

Signed-off-by: Nishanth Aravamudan <nacc@us.ibm.com>


--- 2.6.9-rc1-bk7-vanilla/drivers/message/fusion/mptbase.c	2004-08-31 21:59:35.000000000 +0000
+++ 2.6.9-rc1-bk7-dev/drivers/message/fusion/mptbase.c	2004-09-01 22:28:15.000000000 +0000
@@ -2229,8 +2229,7 @@ MakeIocReady(MPT_ADAPTER *ioc, int force
 		}
 
 		if (sleepFlag == CAN_SLEEP) {
-			set_current_state(TASK_INTERRUPTIBLE);
-			schedule_timeout(1 * HZ / 1000);
+			msleep (1);
 		} else {
 			mdelay (1);	/* 1 msec delay */
 		}
@@ -2599,8 +2598,7 @@ SendIocInit(MPT_ADAPTER *ioc, int sleepF
 	state = mpt_GetIocState(ioc, 1);
 	while (state != MPI_IOC_STATE_OPERATIONAL && --cntdn) {
 		if (sleepFlag == CAN_SLEEP) {
-			set_current_state(TASK_INTERRUPTIBLE);
-			schedule_timeout(1 * HZ / 1000);
+			msleep(1);
 		} else {
 			mdelay(1);
 		}
@@ -2867,8 +2865,7 @@ mpt_downloadboot(MPT_ADAPTER *ioc, int s
 
 	/* wait 1 msec */
 	if (sleepFlag == CAN_SLEEP) {
-		set_current_state(TASK_INTERRUPTIBLE);
-		schedule_timeout(1 * HZ / 1000);
+		msleep (1);
 	} else {
 		mdelay (1);
 	}
@@ -2885,8 +2882,7 @@ mpt_downloadboot(MPT_ADAPTER *ioc, int s
 		}
 		/* wait 1 sec */
 		if (sleepFlag == CAN_SLEEP) {
-			set_current_state(TASK_INTERRUPTIBLE);
-			schedule_timeout(1000 * HZ / 1000);
+			msleep (1000);
 		} else {
 			mdelay (1000);
 		}
@@ -2986,8 +2982,7 @@ mpt_downloadboot(MPT_ADAPTER *ioc, int s
 			return 0;
 		}
 		if (sleepFlag == CAN_SLEEP) {
-			set_current_state(TASK_INTERRUPTIBLE);
-			schedule_timeout(10 * HZ / 1000);
+			msleep (10);
 		} else {
 			mdelay (10);
 		}
@@ -3038,8 +3033,7 @@ KickStart(MPT_ADAPTER *ioc, int force, i
 		SendIocReset(ioc, MPI_FUNCTION_IOC_MESSAGE_UNIT_RESET, sleepFlag);
 
 		if (sleepFlag == CAN_SLEEP) {
-			set_current_state(TASK_INTERRUPTIBLE);
-			schedule_timeout(1000 * HZ / 1000);
+			msleep (1000);
 		} else {
 			mdelay (1000);
 		}
@@ -3061,8 +3055,7 @@ KickStart(MPT_ADAPTER *ioc, int force, i
 			return hard_reset_done;
 		}
 		if (sleepFlag == CAN_SLEEP) {
-			set_current_state(TASK_INTERRUPTIBLE);
-			schedule_timeout(10 * HZ / 1000);
+			msleep (10);
 		} else {
 			mdelay (10);
 		}
@@ -3133,8 +3126,7 @@ mpt_diag_reset(MPT_ADAPTER *ioc, int ign
 
 			/* wait 100 msec */
 			if (sleepFlag == CAN_SLEEP) {
-				set_current_state(TASK_INTERRUPTIBLE);
-				schedule_timeout(100 * HZ / 1000);
+				msleep (100);
 			} else {
 				mdelay (100);
 			}
@@ -3213,8 +3205,7 @@ mpt_diag_reset(MPT_ADAPTER *ioc, int ign
 
 				/* wait 1 sec */
 				if (sleepFlag == CAN_SLEEP) {
-					set_current_state(TASK_INTERRUPTIBLE);
-					schedule_timeout(1000 * HZ / 1000);
+					msleep (1000);
 				} else {
 					mdelay (1000);
 				}
@@ -3241,8 +3232,7 @@ mpt_diag_reset(MPT_ADAPTER *ioc, int ign
 
 				/* wait 1 sec */
 				if (sleepFlag == CAN_SLEEP) {
-					set_current_state(TASK_INTERRUPTIBLE);
-					schedule_timeout(1000 * HZ / 1000);
+					msleep (1000):
 				} else {
 					mdelay (1000);
 				}
@@ -3276,8 +3266,7 @@ mpt_diag_reset(MPT_ADAPTER *ioc, int ign
 
 		/* wait 100 msec */
 		if (sleepFlag == CAN_SLEEP) {
-			set_current_state(TASK_INTERRUPTIBLE);
-			schedule_timeout(100 * HZ / 1000);
+			msleep (100);
 		} else {
 			mdelay (100);
 		}
@@ -3371,8 +3360,7 @@ SendIocReset(MPT_ADAPTER *ioc, u8 reset_
 		}
 
 		if (sleepFlag == CAN_SLEEP) {
-			set_current_state(TASK_INTERRUPTIBLE);
-			schedule_timeout(1 * HZ / 1000);
+			msleep (1);
 		} else {
 			mdelay (1);	/* 1 msec delay */
 		}
@@ -3808,8 +3796,7 @@ WaitForDoorbellAck(MPT_ADAPTER *ioc, int
 			intstat = CHIPREG_READ32(&ioc->chip->IntStatus);
 			if (! (intstat & MPI_HIS_IOP_DOORBELL_STATUS))
 				break;
-			set_current_state(TASK_INTERRUPTIBLE);
-			schedule_timeout(1 * HZ / 1000);
+			msleep (1);
 			count++;
 		}
 	} else {
@@ -3858,8 +3845,7 @@ WaitForDoorbellInt(MPT_ADAPTER *ioc, int
 			intstat = CHIPREG_READ32(&ioc->chip->IntStatus);
 			if (intstat & MPI_HIS_DOORBELL_INTERRUPT)
 				break;
-			set_current_state(TASK_INTERRUPTIBLE);
-			schedule_timeout(1 * HZ / 1000);
+			msleep (1);
 			count++;
 		}
 	} else {

[-- 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] 9+ messages in thread

* [Kernel-janitors] [PATCH 2.6.9-rc1-bk7] pcmcia/yenta_socket:
  2004-09-01 22:22 [Kernel-janitors] [PATCH 2.6.9-rc1-bk7] dtlk: replace Nishanth Aravamudan
                   ` (3 preceding siblings ...)
  2004-09-01 22:50 ` [Kernel-janitors] [PATCH 2.6.9-rc1-bk7] message/mptbase: replace Nishanth Aravamudan
@ 2004-09-01 22:53 ` Nishanth Aravamudan
  2004-09-01 22:56 ` [Kernel-janitors] [PATCH 2.6.9-rc1-bk7] tokenring/lanstreamer: Nishanth Aravamudan
                   ` (2 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: Nishanth Aravamudan @ 2004-09-01 22:53 UTC (permalink / raw)
  To: kernel-janitors

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

This is one of 10 patches which have either not been pushed to mainline
(2.6.9-rc1-bk7) or have not been included in any of the recent kjt's.

Applys-to: 2.6.9-rc1-bk7

Description: Uses msleep() instead of schedule_timeout() to guarantee
the task delays as desired.

Signed-off-by: Nishanth Aravamudan <nacc@us.ibm.com>


--- 2.6.9-rc1-bk7-vanilla/drivers/pcmcia/yenta_socket.c	2004-08-31 21:59:37.000000000 +0000
+++ 2.6.9-rc1-bk7-dev/drivers/pcmcia/yenta_socket.c	2004-09-01 21:40:21.000000000 +0000
@@ -827,8 +827,7 @@ static int yenta_probe_cb_irq(struct yen
 	cb_writel(socket, CB_SOCKET_MASK, CB_CSTSMASK);
 	cb_writel(socket, CB_SOCKET_FORCE, CB_FCARDSTS);
 	
-	set_current_state(TASK_UNINTERRUPTIBLE);
-	schedule_timeout(HZ/10);
+	msleep(100);
 
 	/* disable interrupts */
 	cb_writel(socket, CB_SOCKET_MASK, 0);

[-- 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] 9+ messages in thread

* [Kernel-janitors] [PATCH 2.6.9-rc1-bk7] tokenring/lanstreamer:
  2004-09-01 22:22 [Kernel-janitors] [PATCH 2.6.9-rc1-bk7] dtlk: replace Nishanth Aravamudan
                   ` (4 preceding siblings ...)
  2004-09-01 22:53 ` [Kernel-janitors] [PATCH 2.6.9-rc1-bk7] pcmcia/yenta_socket: Nishanth Aravamudan
@ 2004-09-01 22:56 ` Nishanth Aravamudan
  2004-09-01 22:58 ` [Kernel-janitors] [PATCH 2.6.9-rc1-bk7] wireless/orinoco_plx: Nishanth Aravamudan
  2004-09-01 22:59 ` [Kernel-janitors] [PATCH 2.6.9-rc1-bk7] wireless/orinoco_tmd: Nishanth Aravamudan
  7 siblings, 0 replies; 9+ messages in thread
From: Nishanth Aravamudan @ 2004-09-01 22:56 UTC (permalink / raw)
  To: kernel-janitors

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

This is one of 10 patches which have either not been pushed to mainline
(2.6.9-rc1-bk7) or have not been included in any of the recent kjt's.

Applys-to: 2.6.9-rc1-bk7

Description: Uses msleep() instead of schedule_timeout() to guarantee
the task delays as desired.

Signed-off-by: Nishanth Aravamudan <nacc@us.ibm.com>


--- 2.6.9-rc1-bk7-vanilla/drivers/net/tokenring/lanstreamer.c	2004-08-31 21:26:33.000000000 +0000
+++ 2.6.9-rc1-bk7-dev/drivers/net/tokenring/lanstreamer.c	2004-09-01 21:30:32.000000000 +0000
@@ -455,8 +455,7 @@ static int streamer_reset(struct net_dev
 	writew(readw(streamer_mmio + BCTL) | BCTL_SOFTRESET, streamer_mmio + BCTL);
 	t = jiffies;
 	/* Hold soft reset bit for a while */
-	current->state = TASK_UNINTERRUPTIBLE;
-	schedule_timeout(HZ);
+	msleep(1000);
 	
 	writew(readw(streamer_mmio + BCTL) & ~BCTL_SOFTRESET,
 	       streamer_mmio + BCTL);

[-- 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] 9+ messages in thread

* [Kernel-janitors] [PATCH 2.6.9-rc1-bk7] wireless/orinoco_plx:
  2004-09-01 22:22 [Kernel-janitors] [PATCH 2.6.9-rc1-bk7] dtlk: replace Nishanth Aravamudan
                   ` (5 preceding siblings ...)
  2004-09-01 22:56 ` [Kernel-janitors] [PATCH 2.6.9-rc1-bk7] tokenring/lanstreamer: Nishanth Aravamudan
@ 2004-09-01 22:58 ` Nishanth Aravamudan
  2004-09-01 22:59 ` [Kernel-janitors] [PATCH 2.6.9-rc1-bk7] wireless/orinoco_tmd: Nishanth Aravamudan
  7 siblings, 0 replies; 9+ messages in thread
From: Nishanth Aravamudan @ 2004-09-01 22:58 UTC (permalink / raw)
  To: kernel-janitors

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

This is one of 10 patches which have either not been pushed to mainline
(2.6.9-rc1-bk7) or have not been included in any of the recent kjt's.

Applys-to: 2.6.9-rc1-bk7

Description: Uses msleep() instead of schedule_timeout() to guarantee
the task delays as desired.

Signed-off-by: Nishanth Aravamudan <nacc@us.ibm.com>


--- 2.6.9-rc1-bk7-vanilla/drivers/net/wireless/orinoco_plx.c	2004-08-31 21:32:27.000000000 +0000
+++ 2.6.9-rc1-bk7-dev/drivers/net/wireless/orinoco_plx.c	2004-09-01 21:36:50.000000000 +0000
@@ -352,8 +352,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);
+	msleep(1000);
 }
 
 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] 9+ messages in thread

* [Kernel-janitors] [PATCH 2.6.9-rc1-bk7] wireless/orinoco_tmd:
  2004-09-01 22:22 [Kernel-janitors] [PATCH 2.6.9-rc1-bk7] dtlk: replace Nishanth Aravamudan
                   ` (6 preceding siblings ...)
  2004-09-01 22:58 ` [Kernel-janitors] [PATCH 2.6.9-rc1-bk7] wireless/orinoco_plx: Nishanth Aravamudan
@ 2004-09-01 22:59 ` Nishanth Aravamudan
  7 siblings, 0 replies; 9+ messages in thread
From: Nishanth Aravamudan @ 2004-09-01 22:59 UTC (permalink / raw)
  To: kernel-janitors

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

This is one of 10 patches which have either not been pushed to mainline
(2.6.9-rc1-bk7) or have not been included in any of the recent kjt's.

Applys-to: 2.6.9-rc1-bk7

Description: Uses msleep() instead of schedule_timeout() to guarantee
the task delays as desired.

Signed-off-by: Nishanth Aravamudan <nacc@us.ibm.com>


--- 2.6.9-rc1-bk7-vanilla/drivers/net/wireless/orinoco_tmd.c	2004-08-31 21:32:27.000000000 +0000
+++ 2.6.9-rc1-bk7-dev/drivers/net/wireless/orinoco_tmd.c	2004-09-01 21:34:54.000000000 +0000
@@ -63,6 +63,7 @@
 #include <linux/string.h>
 #include <linux/timer.h>
 #include <linux/ioport.h>
+#include <linux/delay.h>
 #include <asm/uaccess.h>
 #include <asm/io.h>
 #include <asm/system.h>
@@ -218,8 +219,7 @@ static int __init orinoco_tmd_init(void)
 static void __exit orinoco_tmd_exit(void)
 {
 	pci_unregister_driver(&orinoco_tmd_driver);
-	current->state = TASK_UNINTERRUPTIBLE;
-	schedule_timeout(HZ);
+	msleep(1000);
 }
 
 module_init(orinoco_tmd_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] 9+ messages in thread

end of thread, other threads:[~2004-09-01 22:59 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-09-01 22:22 [Kernel-janitors] [PATCH 2.6.9-rc1-bk7] dtlk: replace Nishanth Aravamudan
2004-09-01 22:31 ` [Kernel-janitors] [PATCH 2.6.9-rc1-bk7] i2c-algo-ite: remove Nishanth Aravamudan
2004-09-01 22:36 ` [Kernel-janitors] [PATCH 2.6.9-rc1-bk7] isdn/act2000_isa: remove Nishanth Aravamudan
2004-09-01 22:47 ` [Kernel-janitors] [PATCH 2.6.9-rc1-bk7] isdn/sc/hardware: remove Nishanth Aravamudan
2004-09-01 22:50 ` [Kernel-janitors] [PATCH 2.6.9-rc1-bk7] message/mptbase: replace Nishanth Aravamudan
2004-09-01 22:53 ` [Kernel-janitors] [PATCH 2.6.9-rc1-bk7] pcmcia/yenta_socket: Nishanth Aravamudan
2004-09-01 22:56 ` [Kernel-janitors] [PATCH 2.6.9-rc1-bk7] tokenring/lanstreamer: Nishanth Aravamudan
2004-09-01 22:58 ` [Kernel-janitors] [PATCH 2.6.9-rc1-bk7] wireless/orinoco_plx: Nishanth Aravamudan
2004-09-01 22:59 ` [Kernel-janitors] [PATCH 2.6.9-rc1-bk7] wireless/orinoco_tmd: 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.