Re: Choosing between DELAY(useconds) and pause()

看板FB_current作者時間14年前 (2011/09/23 02:32), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串2/8 (看更多)
On Thursday 22 September 2011 19:55:23 David Somayajulu wrote: > It appears that the pause() function cannot be used in driver functions > which are invoked early in the boot process. Is there is a kernel api > which a device driver can use to determine whether to use pause() or > DELAY(), for delays which are say greater than 10hz - may be even 1 hz ? Maybe you want to use something like this: if (cold) DELAY() else pause() In your code. --HPS _______________________________________________ freebsd-current@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-current To unsubscribe, send any mail to "freebsd-current-unsubscribe@freebsd.org"
文章代碼(AID): #1EUtyYhM (FB_current)
討論串 (同標題文章)
文章代碼(AID): #1EUtyYhM (FB_current)