Skip to contentSkip to conversation

pcmcia/yenta_socket: replace schedule_timeout() with msleep()

PATCH Applied [email protected] 2 participants 2 messages Oct 30, 2004 – Nov 20, 2004 Pcmcia

lore
Share & tools
lore
#0 lore raw

PATCH 2/8 pcmcia/yenta_socket: replace schedule_timeout() with msleep()

Any comments would be appreciated.

Description: Use msleep() instead of schedule_timeout() to guarantee the task delays as expected.

---

 linux-2.6.10-rc1-max/drivers/pcmcia/yenta_socket.c |    3 +--
 1 files changed, 1 insertion(+), 2 deletions(-)
drivers/pcmcia/yenta_socket.c renamed from drivers/pcmcia/yenta_socket.c~msleep-drivers_net_irda_pcmcia_yenta_socket +1 -2
diff -puN drivers/pcmcia/yenta_socket.c~msleep-drivers_net_irda_pcmcia_yenta_socket drivers/pcmcia/yenta_socket.c
@@ -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);

_

Applied
#1 lore raw
Quoted 1 line · On Sun, Oct 31, 2004 at 12:47:02AM +0200, [email protected] wrote:

Any comments would be appreciated.

Applied, thanks.

Signature · 4 lines
Russell King
 Linux kernel    2.6 ARM Linux   - http://www.arm.linux.org.uk/
 maintainer of:  2.6 PCMCIA      - http://pcmcia.arm.linux.org.uk/
                 2.6 Serial core