[patch 2/8] pcmcia/yenta_socket: replace schedule_timeout() with msleep()
janitor_at_sternwelten.at
Date: 10/31/04
- Previous message: janitor_at_sternwelten.at: "[patch 6/8] serial/mcfserial: replace schedule_timeout() with msleep_interruptible()"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
To: rmk+lkml@arm.linux.org.uk Date: Sun, 31 Oct 2004 00:47:02 +0200
Any comments would be appreciated.
Description: Use msleep() 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>
--- linux-2.6.10-rc1-max/drivers/pcmcia/yenta_socket.c | 3 +-- 1 files changed, 1 insertion(+), 2 deletions(-) diff -puN drivers/pcmcia/yenta_socket.c~msleep-drivers_net_irda_pcmcia_yenta_socket drivers/pcmcia/yenta_socket.c --- linux-2.6.10-rc1/drivers/pcmcia/yenta_socket.c~msleep-drivers_net_irda_pcmcia_yenta_socket 2004-10-24 17:04:56.000000000 +0200 +++ linux-2.6.10-rc1-max/drivers/pcmcia/yenta_socket.c 2004-10-24 17:04:56.000000000 +0200 @@ -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); _ - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
- Previous message: janitor_at_sternwelten.at: "[patch 6/8] serial/mcfserial: replace schedule_timeout() with msleep_interruptible()"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
- [patch 06/10] ide/ide-cs: replace schedule_timeout() with msleep()
... Uses msleep() in place of schedule_timeout ... to guarantee the task
delays as expected. ... send the line "unsubscribe linux-kernel" in ... (Linux-Kernel) - [patch 2/3] ide/ide-cs: replace schedule_timeout() with msleep()
... Uses msleep() in place of schedule_timeout ... to guarantee the task
delays as expected. ... send the line "unsubscribe linux-kernel" in ... (Linux-Kernel) - [patch 1/8] net/xirc2ps_cs: replace Wait() with msleep()
... Use msleepinstead of Waitto guarantee the task delays ... send the line
"unsubscribe linux-kernel" in ... (Linux-Kernel) - [patch 01/10] char/ds1620: use msleep() instead of schedule_timeout()
... Use msleep() instead of schedule_timeoutto guarantee the ... task delays
as expected. ... static unsigned int ds1620_in ... send the line "unsubscribe
linux-kernel" in ... (Linux-Kernel) - [patch 10/21] media/cpia: replace schedule_timeout() with msleep_interruptible()
... guarantee the task delays as expected. ... send the line "unsubscribe
linux-kernel" in ... More majordomo info at http://vger.kernel.org/majordomo-info.html
... (Linux-Kernel)