[PATCH 2.6 IrDA] irlan -- replace sleep_on with wait_event

From: Jean Tourrilhes
Date: Wed Apr 14 2004 - 17:26:08 EST


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@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/