[svn-commits] tzafrir: branch linux/tzafrir/sysfs r8701 - /linux/team/tzafrir/sysfs/drivers...

SVN commits to the Digium repositories svn-commits at lists.digium.com
Thu May 27 07:09:29 CDT 2010


Author: tzafrir
Date: Thu May 27 07:09:27 2010
New Revision: 8701

URL: http://svnview.digium.com/svn/dahdi?view=rev&rev=8701
Log:
sysfs: increase timeout of wait_for_channels

Modified:
    linux/team/tzafrir/sysfs/drivers/dahdi/dahdi-sysfs.c

Modified: linux/team/tzafrir/sysfs/drivers/dahdi/dahdi-sysfs.c
URL: http://svnview.digium.com/svn/dahdi/linux/team/tzafrir/sysfs/drivers/dahdi/dahdi-sysfs.c?view=diff&rev=8701&r1=8700&r2=8701
==============================================================================
--- linux/team/tzafrir/sysfs/drivers/dahdi/dahdi-sysfs.c (original)
+++ linux/team/tzafrir/sysfs/drivers/dahdi/dahdi-sysfs.c Thu May 27 07:09:27 2010
@@ -195,6 +195,8 @@
 	return ready;
 }
 
+#define	SPAN_WAIT_TIMEOUT	(20*HZ)
+
 static BUS_ATTR_READER(wait_for_channels_show, dev, buf)
 {
 	struct dahdi_span *span;
@@ -204,7 +206,7 @@
 	ret = wait_event_interruptible_timeout(
 		span->configured,
 		ready_channels(span) >= span->channels,
-		2000);
+		SPAN_WAIT_TIMEOUT);
 	if(ret == 0) {
 		span_dbg(DEVICES, span, "Span wait configuration timeout\n");
 		return -ETIMEDOUT;




More information about the svn-commits mailing list