Subject: Re: kern/29600: cbb(4) hangs on boot
To: None <kern-bug-people@netbsd.org, gnats-admin@netbsd.org,>
From: YAMAMOTO Takashi <yamt@mwd.biglobe.ne.jp>
List: netbsd-bugs
Date: 03/12/2005 08:07:01
The following reply was made to PR kern/29600; it has been noted by GNATS.
From: YAMAMOTO Takashi <yamt@mwd.biglobe.ne.jp>
To: naoki@fukaumi.org
Cc: fun@naobsd.org, gnats-bugs@netbsd.org
Subject: Re: kern/29600: cbb(4) hangs on boot
Date: Sat, 12 Mar 2005 17:06:48 +0900
> We don't have any reason to wait value is changed in while() loop.
>
> tsleep() will be awakened if power cycle event occured. There is no
> reason to check sc_pwrcycle value.
i think
while (condition) {
sleep();
}
is a common convention to prevent spurious wakeups.
YAMAMOTO Takashi