lkml.org 
[lkml]   [2004]   [Apr]   [14]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
Subject[PATCH 2.6 IrDA] irlan -- replace sleep_on with wait_event
From
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/
\
 
 \ /
  Last update: 2005-03-22 14:02    [W:0.029 / U:0.468 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site