kill schedule_timeout(0) uses
GNU patch attached and CC'd to lkml to encourage an extra look-over being applying...
Linus, please do a
bk pull http://gkernel.bkbits.net/misc-2.5
This will update the following files:
drivers/cdrom/cdu31a.c | 3 +-- drivers/cdrom/sonycd535.c | 3 +-- drivers/net/sb1000.c | 8 ++++---- drivers/net/sis900.c | 4 ++-- 4 files changed, 8 insertions(+), 10 deletions(-)
through these ChangeSets:
<[email protected]> (02/09/22 1.598)
s/schedule_timeout(0)/yield/ in cdu31a, sonycd535, sb1000, and sis900 drivers
drivers/cdrom/cdu31a.c +1 -2
@@ -386,8 +386,7 @@unsigned long flags;if (cdu31a_irq <=0 ) { - current->state =TASK_INTERRUPTIBLE ; -schedule_timeout (0 ); +yield (); }else {/* Interrupt driven */ save_flags (flags);
drivers/cdrom/sonycd535.c +1 -2
@@ -344,8 +344,7 @@sony_sleep (void) {if (sony535_irq_used <=0 ) {/* poll */ - current->state =TASK_INTERRUPTIBLE ; -schedule_timeout (0 ); +yield (); }else {/* Interrupt driven */ cli ();enable_interrupts ();
drivers/net/sb1000.c +4 -4
@@ -295,8 +295,8 @@ timeout = jiffies + TimeOutJiffies;while (a &0x80 || a &0x40 ) {/* a little sleep */ - current->state =TASK_INTERRUPTIBLE ; -schedule_timeout (0 ); +yield (); + a =inb (ioaddr[0 ] +7 );if (jiffies >= timeout) { printk(KERN_WARNING "%s: card_wait_for_busy_clear timeout\n",
@@ -319,8 +319,8 @@ timeout = jiffies + TimeOutJiffies;while (a &0x80 || !(a &0x40 )) {/* a little sleep */ - current->state =TASK_INTERRUPTIBLE ; -schedule_timeout (0 ); +yield (); + a =inb (ioaddr[1 ] +6 );if (jiffies >= timeout) { printk(KERN_WARNING "%s: card_wait_for_ready timeout\n",
drivers/net/sis900.c +2 -2
@@ -573,8 +573,8 @@if (status &MII_STAT_LINK ){while (poll_bit) { - current->state =TASK_INTERRUPTIBLE ; -schedule_timeout (0 ); +yield (); + poll_bit ^= (mdio_read (net_dev, sis_priv->cur_phy,MII_STATUS ) & poll_bit);if (jiffies >= timeout) {printk (KERN_WARNING "%s: reset phy and link down now\n" , net_dev->name);