]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Add explicit check for not set time inside cam_periph_freeze_after_event().
authorAlexander Motin <mav@FreeBSD.org>
Sun, 14 Oct 2012 08:50:05 +0000 (08:50 +0000)
committerAlexander Motin <mav@FreeBSD.org>
Sun, 14 Oct 2012 08:50:05 +0000 (08:50 +0000)
commitf8ff57d287980a765b8d31a5f5fd4321c5a93193
tree51b8f7ba820d337f38d1aa6c6a0d184aa33209f5
parentd0fd6bb00e651c44b025f8ccb7aa09cf2672689b
Add explicit check for not set time inside cam_periph_freeze_after_event().

System time is set later on boot process then initial bus scan by CAM.
Until that moment microtime() is equal to microuptime(), and if system
boots quickly, the value can be close to zero. That causes settle time
waiting even for buses that don't use reset during probe.

On my test system this reduces boot time by 1 second if USB enabled, or
by 4 seconds if USB disabled.  CAM waited for ctl2cam0 bus "settle".
sys/cam/cam_periph.c