freebsd-dev/sys/x86
Konstantin Belousov 0530a9360f Make it possible to re-evaluate cpu_features.
Add cpuctl(4) ioctl CPUCTL_EVAL_CPU_FEATURES which forces re-read of
cpu_features, cpu_features2, cpu_stdext_features, and
std_stdext_features2.

The intent is to allow the kernel to see the changes in the CPU
features after micocode update.  Of course, the update is not atomic
across variables and not synchronized with readers.  See the man page
warning as well.

Reviewed by:	imp (previous version), jilles
Sponsored by:	The FreeBSD Foundation
MFC after:	1 week
Differential revision:	https://reviews.freebsd.org/D13770
2018-01-05 21:06:19 +00:00
..
acpica Use resume_cpus() instead of restart_cpus() to resume from ACPI suspension. 2017-12-21 09:17:48 +00:00
bios sys/x86: further adoption of SPDX licensing ID tags. 2017-11-27 15:11:47 +00:00
cpufreq Properly skip the first CPU. It only accidentally worked because the 2017-11-30 20:21:42 +00:00
include Make it possible to re-evaluate cpu_features. 2018-01-05 21:06:19 +00:00
iommu sys/x86: further adoption of SPDX licensing ID tags. 2017-11-27 15:11:47 +00:00
isa Further investigation shows this shouldn't have been added at all. 2017-12-24 17:59:48 +00:00
pci sys/x86: further adoption of SPDX licensing ID tags. 2017-11-27 15:11:47 +00:00
x86 Make it possible to re-evaluate cpu_features. 2018-01-05 21:06:19 +00:00
xen sys/x86: further adoption of SPDX licensing ID tags. 2017-11-27 15:11:47 +00:00