Call amd64_errata() from cpu_fix_msrs() instead of identifycpu() so that
authorrobert <robert@openbsd.org>
Thu, 22 Sep 2022 04:36:37 +0000 (04:36 +0000)
committerrobert <robert@openbsd.org>
Thu, 22 Sep 2022 04:36:37 +0000 (04:36 +0000)
commit46a03a1ef9f5cfd6cf3f55a92b8b55ec30bfcd07
tree34292fb93c341111c2132d931ef808f577b19b45
parentf336206e49716e966e80b6a2fd042bc4886f242a
Call amd64_errata() from cpu_fix_msrs() instead of identifycpu() so that
on resume, the errata is re-applied.
In addition make amd64_errata() print the information about the applied
errata only once for the first CPU.

input from jsg@ and deraadt@, ok deraadt@
sys/arch/amd64/amd64/amd64errata.c
sys/arch/amd64/amd64/cpu.c
sys/arch/amd64/amd64/identcpu.c