]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
MFC r361788: superio: do not assume that current LDN cannot change after config exit
authorAndriy Gapon <avg@FreeBSD.org>
Thu, 11 Jun 2020 05:28:08 +0000 (05:28 +0000)
committerAndriy Gapon <avg@FreeBSD.org>
Thu, 11 Jun 2020 05:28:08 +0000 (05:28 +0000)
commita5ab79a340192ee25b6631c6e80d4fda8e58f743
treefdd3109130fa15563d0ab047648d122819ca1d31
parent3ee4519c81417933746a5f5ad32f63511492b89b
MFC r361788: superio: do not assume that current LDN cannot change after config exit

That assumption should be true when superio(4) uses the hardware
exlusively.  But it turns out to not hold on some real systems.
So, err on the side of correctness rather than performance.
Clear current_ldn in sio_conf_exit.
sys/dev/superio/superio.c