Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 28 Aug 2019 11:26:56 +0200
From:      Hans Petter Selasky <hps@selasky.org>
To:        Yuri Pankov <yuripv@yuripv.net>, freebsd-hackers@freebsd.org
Subject:   Re: ichsmb(4) and msleep()
Message-ID:  <478965aa-5256-e356-5339-de6fb82c3459@selasky.org>
In-Reply-To: <7dfebbd3-85d6-c7b7-b83b-fae8b644649e@yuripv.net>
References:  <7dfebbd3-85d6-c7b7-b83b-fae8b644649e@yuripv.net>

next in thread | previous in thread | raw e-mail | index | archive | help
On 2019-08-28 11:07, Yuri Pankov wrote:
> I have a "timed sleep before timers are working" panic in ichsmb_readb()
> calling ichsmb_wait() which uses msleep().  That is trying to
> jedec_dimm(4) module so it's trying to attach pretty early in boot.
> What would be the correct replacement for msleep() here?
> 

If you only need a sleep-delay, pause() is the right one. It handles 
cold-boot.

--HPS




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?478965aa-5256-e356-5339-de6fb82c3459>