isdn/kcapi: replace
Subsystems (2)
PATCH 16/16 isdn/kcapi: replace
Any comments would be appreciated. This is a re-push of a patch submitted a few months ago which has not been merged as of 2.6.9-rc1-mm5 / 2.6.9-rc2.
Description: Use msleep_interruptible() instead of schedule_timeout() to guarantee the task delays as expected.
Signed-off-by Nishanth Aravamudan <[email protected]>
drivers/isdn/capi/kcapi.c +3 -4
@@ -24,6 +24,7 @@#include <linux/capi.h> #include <linux/kernelcapi.h> #include <linux/init.h> +#include <linux/delay.h> #include <asm/uaccess.h> #include <linux/isdn/capicmd.h> #include <linux/isdn/capiutil.h>
@@ -831,8 +832,7 @@ static int old_capi_manufacturer(unsignewhile (card->cardstate !=CARD_RUNNING ) { -set_current_state (TASK_INTERRUPTIBLE ); -schedule_timeout (HZ /10 );/* 0.1 sec */ +msleep_interruptible (100 );/* 0.1 sec */ if (signal_pending (current)) {capi_ctr_put (card);
@@ -856,8 +856,7 @@ static int old_capi_manufacturer(unsignewhile (card->cardstate >CARD_DETECTED ) { -set_current_state (TASK_INTERRUPTIBLE ); -schedule_timeout (HZ /10 );/* 0.1 sec */ +msleep_interruptible (100 );/* 0.1 sec */ if (signal_pending (current))return -EINTR ;
_______________________________________________
Kernel-janitors mailing list
[email protected]
http://lists.osdl.org/mailman/listinfo/kernel-janitors
PATCH 16/16 scsi/wd7000: replace
Any comments would be appreciated.
Description: Use msleep() instead of schedule_timeout() to guarantee the task delays as expected.
drivers/scsi/wd7000.c +1 -2
@@ -1473,8 +1473,7 @@ static int wd7000_detect(struct scsi_hos* ASC reset... */ outb (ASC_RES , iobase +ASC_CONTROL ); -set_current_state (TASK_UNINTERRUPTIBLE ); -schedule_timeout (HZ /100 ); +msleep (10 );outb (0 , iobase +ASC_CONTROL );if (WAIT (iobase +ASC_STAT ,ASC_STATMASK ,CMD_RDY ,0 )) {
_______________________________________________
Kernel-janitors mailing list
[email protected]
http://lists.osdl.org/mailman/listinfo/kernel-janitors