From owner-cvs-all Thu Apr 5 9:38:18 2001 Delivered-To: cvs-all@freebsd.org Received: from harmony.village.org (rover.bsdimp.com [204.144.255.66]) by hub.freebsd.org (Postfix) with ESMTP id 50FDE37B496; Thu, 5 Apr 2001 09:38:13 -0700 (PDT) (envelope-from imp@harmony.village.org) Received: from harmony.village.org (localhost.village.org [127.0.0.1]) by harmony.village.org (8.11.1/8.11.1) with ESMTP id f35Gc6q41141; Thu, 5 Apr 2001 10:38:07 -0600 (MDT) (envelope-from imp@harmony.village.org) Message-Id: <200104051638.f35Gc6q41141@harmony.village.org> To: Luigi Rizzo Subject: Re: cvs commit: src/sys/dev/wi if_wi.c Cc: Alfred Perlstein , cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org In-reply-to: Your message of "Thu, 05 Apr 2001 11:29:43 +0200." <200104050929.LAA88010@info.iet.unipi.it> References: <200104050929.LAA88010@info.iet.unipi.it> Date: Thu, 05 Apr 2001 10:36:51 -0600 From: Warner Losh Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 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