Searched hist:aa7c028adbb48bfb5404c567d66cab313d471cfc (Results 1 – 1 of 1) sorted by relevance
/freebsd/sbin/devd/ |
H A D | devmatch.conf | diff aa7c028adbb48bfb5404c567d66cab313d471cfc Fri Oct 27 23:23:47 CEST 2023 Warner Losh <imp@FreeBSD.org> devd: Improve devmatch support
We know that calling devmatch will be futile if there's no plug and play information for it to match on. Avoid this generically when we see "? at +on" which happens only when the location and pnpinfo aren't provided. Don't call "service devmatch quietstart" here.
We also ignore ACPI devices with a _HID of none. These also will never load a new driver, so avoid calling "service devmatch quietstart" here too.
Use the more compatct "$*" instead of "'?'$_" when calling "service devmatch quietstart" since it will evaluate to the same thing.
On my laptop, this eliminates 45% of the calls to devmatch. While it would be even better to integrate devmatch into devd (so we only parse linker.hints once), that will have to wait for another day as it's a bit more complex to arrange that avoiding easy to avoid calls.
Sponsored by: Netflix Reviewed by: emaste Differential Revision: https://reviews.freebsd.org/D42326
|