* [PATCH 2.6 IrDA] irlan -- replace sleep_on with wait_event
@ 2004-04-14 22:20 Jean Tourrilhes
0 siblings, 0 replies; only message in thread
From: Jean Tourrilhes @ 2004-04-14 22:20 UTC (permalink / raw)
To: David S. Miller, Linux kernel mailing list
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);
}
/*
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2004-04-14 22:22 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-04-14 22:20 [PATCH 2.6 IrDA] irlan -- replace sleep_on with wait_event Jean Tourrilhes
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®