Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 12 Jan 1998 12:46:59 +1030
From:      Mike Smith <mike@smith.net.au>
To:        Luigi Rizzo <luigi@labinfo.iet.unipi.it>
Cc:        hackers@FreeBSD.ORG
Subject:   Re: How do I DELAY() at boot time ? 
Message-ID:  <199801120216.MAA00829@word.smith.net.au>
In-Reply-To: Your message of "Sat, 10 Jan 1998 13:44:31 BST." <199801101244.NAA09631@labinfo.iet.unipi.it> 

next in thread | previous in thread | raw e-mail | index | archive | help

> Suppose during the probe/attach routine for a device I have to wait for
> some time, what is the correct approach ? I am currently using DELAY()
> (this is in the audio driver, ad1848.c for what matters) and this seems
> not to have the desired effect. Since the same code is also used during
> regular operation, DELAY works fine there... should I do something like
> 
> 	if (booting)
> 		do_something_to_spend_time(x);
> 	else
> 		DELAY(x)
> 
> instead ?

No, DELAY() should work from very early on.  What is "not the desired 
effect", and what hardware, etc?

-- 
\\  Sometimes you're ahead,       \\  Mike Smith
\\  sometimes you're behind.      \\  mike@smith.net.au
\\  The race is long, and in the  \\  msmith@freebsd.org
\\  end it's only with yourself.  \\ 





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