]> CyberLeo.Net >> Repos - FreeBSD/stable/9.git/commit
MFC 299977: Use polling spin loops for timeouts during early boot.
authorjhb <jhb@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Sat, 23 Jul 2016 22:50:59 +0000 (22:50 +0000)
committerjhb <jhb@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Sat, 23 Jul 2016 22:50:59 +0000 (22:50 +0000)
commit543e515f688e76e9727470c8cdd27ed834882f1b
treed8f37ab64ed24ebaecababd5b93e0d1d97b7a96e
parenteea5d6338083b1430fc060221e485a686fdb28fb
MFC 299977: Use polling spin loops for timeouts during early boot.

Some ACPI operations such as mutex acquires and event waits accept a
timeout.  The ACPI OSD layer implements these timeouts by using regular
sleep timeouts.  However, this doesn't work during early boot before
event timers are setup.  Instead, use polling combined with DELAY()
to spin.

This fixes booting on upcoming Intel systems with Kaby Lake processors.

git-svn-id: svn://svn.freebsd.org/base/stable/9@303252 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
sys/dev/acpica/Osd/OsdSynch.c