Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 05 Apr 2001 10:36:51 -0600
From:      Warner Losh <imp@harmony.village.org>
To:        Luigi Rizzo <luigi@info.iet.unipi.it>
Cc:        Alfred Perlstein <alfred@FreeBSD.org>, cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org
Subject:   Re: cvs commit: src/sys/dev/wi if_wi.c 
Message-ID:  <200104051638.f35Gc6q41141@harmony.village.org>
In-Reply-To: Your message of "Thu, 05 Apr 2001 11:29:43 %2B0200." <200104050929.LAA88010@info.iet.unipi.it> 
References:  <200104050929.LAA88010@info.iet.unipi.it>  

next in thread | previous in thread | raw e-mail | index | archive | help
In message <200104050929.LAA88010@info.iet.unipi.it> Luigi Rizzo writes:
: > alfred      2001/04/05 02:25:41 PDT
: > 
: >   Modified files:
: >     sys/dev/wi           if_wi.c 
: >   Log:
: >   WI_TIMEOUT is 65536
: >   
: >   65536 * 10msec == 10 minutes 55 seconds == hung machine
: >
: >   Instead wait for the busy bits for a max of ~2 seconds (200 * 10msec)
: 
: it would be better to make it 2*HZ then, because someone
: uses different values if HZ than the default (100)

There's a 10ms delay in the loop in question that is independent of
HZ, so 200 means 200 times through this loop.

Warner

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe cvs-all" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200104051638.f35Gc6q41141>