]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Avoid calling get_controller_count() until attaching, this would avoid
authordelphij <delphij@FreeBSD.org>
Sat, 4 Nov 2017 06:19:46 +0000 (06:19 +0000)
committerdelphij <delphij@FreeBSD.org>
Sat, 4 Nov 2017 06:19:46 +0000 (06:19 +0000)
commit447339e7f852f81d731f268fb69ef32e9267cab1
treedc8314ae7f7289b2b7321494593ea4ff20332eda
parentda2066c2faa99ae2011c37422b4a70f3b51f060c
Avoid calling get_controller_count() until attaching, this would avoid
costly PCI config space operations that slows down systems without the
hardware.

Many thanks to HighPoint for continued support of FreeBSD!

Submitted by: Steve Chang
Reported by: cperciva
MFC after: 2 weeks
sys/dev/hpt27xx/hpt27xx_config.c
sys/dev/hpt27xx/hpt27xx_osm_bsd.c
sys/dev/hptnr/hptnr_config.c
sys/dev/hptnr/hptnr_osm_bsd.c