From owner-freebsd-hackers Sat Jan 10 06:12:40 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.7/8.8.7) id GAA03530 for hackers-outgoing; Sat, 10 Jan 1998 06:12:40 -0800 (PST) (envelope-from owner-freebsd-hackers@FreeBSD.ORG) Received: from labinfo.iet.unipi.it (labinfo.iet.unipi.it [131.114.9.5]) by hub.freebsd.org (8.8.7/8.8.7) with SMTP id GAA03524; Sat, 10 Jan 1998 06:12:27 -0800 (PST) (envelope-from luigi@labinfo.iet.unipi.it) Received: from localhost (luigi@localhost) by labinfo.iet.unipi.it (8.6.5/8.6.5) id NAA09631; Sat, 10 Jan 1998 13:44:31 +0100 From: Luigi Rizzo Message-Id: <199801101244.NAA09631@labinfo.iet.unipi.it> Subject: How do I DELAY() at boot time ? To: hackers@FreeBSD.ORG Date: Sat, 10 Jan 1998 13:44:31 +0100 (MET) X-Mailer: ELM [version 2.4 PL23] Content-Type: text Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk 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 ? Thanks Luigi -----------------------------+-------------------------------------- Luigi Rizzo | Dip. di Ingegneria dell'Informazione email: luigi@iet.unipi.it | Universita' di Pisa tel: +39-50-568533 | via Diotisalvi 2, 56126 PISA (Italy) fax: +39-50-568522 | http://www.iet.unipi.it/~luigi/ _____________________________|______________________________________