message/device: replace
Subsystems (6)
PATCH 1/4 message/device: replace
Any comments would be appreciated.
Description: Use ssleep() instead of schedule_timeout() to guarantee the task delays as expected.
drivers/message/i2o/device.c +2 -2
@@ -15,6 +15,7 @@#include <linux/module.h> #include <linux/i2o.h> +#include <linux/delay.h> /* Exec OSM functions */ extern struct bus_type i2o_bus_type;
@@ -106,8 +107,7 @@ int i2o_device_claim_release(struct i2o_if (!rc)break ; -set_current_state (TASK_UNINTERRUPTIBLE ); -schedule_timeout (HZ ); +ssleep (1 ); }if (!rc)
_______________________________________________
Kernel-janitors mailing list
[email protected]
http://lists.osdl.org/mailman/listinfo/kernel-janitors
PATCH 1/4 mtd/amd_flash: replace
Any comments would be appreciated.
Description: Use msleep() instead of schedule_timeout() to guarantee the task delays as expected.
drivers/mtd/chips/amd_flash.c +1 -1
@@ -1122,7 +1122,7 @@ retry: timeo = jiffies + (HZ *20 );spin_unlock_bh (chip->mutex); -schedule_timeout (HZ ); +msleep (1000 );spin_lock_bh (chip->mutex);while (flash_is_busy (map, adr, private->interleave)) {
_______________________________________________
Kernel-janitors mailing list
[email protected]
http://lists.osdl.org/mailman/listinfo/kernel-janitors
PATCH 1/4 pci hotplug/cpqphp_ctrl:
In reply to Nishanth AravamudanAny comments would be appreciated.
Description: Use msleep_interruptible() instead of schedule_timeout() to guarantee the task delays as expected.
drivers/pci/hotplug/cpqphp_ctrl.c +1 -3
@@ -69,10 +69,8 @@ static void long_delay(int delay)init_waitqueue_head (&delay_wait);add_wait_queue (&delay_wait, &wait); -set_current_state (TASK_INTERRUPTIBLE ); -schedule_timeout (delay); +msleep_interruptible (jiffies_to_msecs (delay));remove_wait_queue (&delay_wait, &wait); -set_current_state (TASK_RUNNING );up (&delay_sem); }
_______________________________________________
Kernel-janitors mailing list
[email protected]
http://lists.osdl.org/mailman/listinfo/kernel-janitors
PATCH 1/4 sbus/aurora: replace
In reply to Nishanth AravamudanAny comments would be appreciated.
Description: Use msleep_interruptible() instead of schedule_timeout() to guarantee the task delays as expected.
drivers/sbus/char/aurora.c +2 -4
@@ -1519,8 +1519,7 @@ static void aurora_close(struct tty_stru*/ timeout = jiffies+HZ ;while (port->SRER &SRER_TXEMPTY ) { - current->state =TASK_INTERRUPTIBLE ; -schedule_timeout (port->timeout); +msleep_interruptible (jiffies_to_msecs (port->timeout));if (time_after (jiffies, timeout))break ; }
@@ -1538,8 +1537,7 @@ static void aurora_close(struct tty_stru port->tty =0 ;if (port->blocked_open) {if (port->close_delay) { - current->state =TASK_INTERRUPTIBLE ; -schedule_timeout (port->close_delay); +msleep_interruptible (port->close_delay); }wake_up_interruptible (&port->open_wait); }
_______________________________________________
Kernel-janitors mailing list
[email protected]
http://lists.osdl.org/mailman/listinfo/kernel-janitors
PATCH 1/4 video/pxafb: replace
In reply to Nishanth AravamudanAny comments would be appreciated.
Description: Use msleep() instead of schedule_timeout() to guarantee the task delays as expected.
drivers/video/pxafb.c +1 -1
@@ -747,7 +747,7 @@ static void pxafb_disable_controller(strLCCR0 &= ~LCCR0_LDM ;/* Enable LCD Disable Done Interrupt */ LCCR0 |=LCCR0_DIS ;/* Disable LCD Controller */ -schedule_timeout (20 *HZ /1000 ); +msleep (20 );remove_wait_queue (&fbi->ctrlr_wait, &wait); }
_______________________________________________
Kernel-janitors mailing list
[email protected]
http://lists.osdl.org/mailman/listinfo/kernel-janitors
PATCH 1/4 w1/dscore: replace
In reply to Nishanth AravamudanAny comments would be appreciated.
Description: Use msleep_interruptible() instead of schedule_timeout() to guarantee the task delays as expected.
drivers/w1/dscore.c +2 -1
@@ -23,6 +23,7 @@#include <linux/kernel.h> #include <linux/mod_devicetable.h> #include <linux/usb.h> +#include <linux/delay.h> #include "dscore.h"
@@ -731,7 +732,7 @@ void ds_disconnect(struct usb_interfaceusb_set_intfdata (intf,NULL );while (atomic_read (&dev->refcnt)) -schedule_timeout (HZ ); +msleep_interruptible (1000 );usb_put_dev (dev->udev);kfree (dev);
_______________________________________________
Kernel-janitors mailing list
[email protected]
http://lists.osdl.org/mailman/listinfo/kernel-janitors