Messages in this thread Patch in this message | | | Date | Wed, 14 Apr 2004 15:20:59 -0700 | Subject | [PATCH 2.6 IrDA] irlan -- replace sleep_on with wait_event | From | Jean Tourrilhes <> |
| |
irXXX_irlan_sleep.diff : ~~~~~~~~~~~~~~~~~~~~~~ <Patch from Stephen Hemminger> o [CORRECT] gets rid of interruptible_sleep_on.
diff -Nru a/net/irda/irlan/irlan_eth.c b/net/irda/irlan/irlan_eth.c --- a/net/irda/irlan/irlan_eth.c Fri Mar 19 11:43:53 2004 +++ b/net/irda/irlan/irlan_eth.c Fri Mar 19 11:43:53 2004 @@ -104,10 +104,10 @@ self->disconnect_reason = 0; irlan_client_wakeup(self, self->saddr, self->daddr); - /* Make sure we have a hardware address before we return, so DHCP clients gets happy */ - interruptible_sleep_on(&self->open_wait); - - return 0; + /* Make sure we have a hardware address before we return, + so DHCP clients gets happy */ + return wait_event_interruptible(self->open_wait, + !self->tsap_data->connected); } /* - 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/
| |