aboutsummaryrefslogtreecommitdiff
path: root/sys/sys
diff options
context:
space:
mode:
authorKonstantin Belousov <kib@FreeBSD.org>2018-01-05 21:06:19 +0000
committerKonstantin Belousov <kib@FreeBSD.org>2018-01-05 21:06:19 +0000
commit0530a9360f72fa080d17eaf96b384a79b83a6e7c (patch)
tree58fe75291f3758eda9ae880aec28df2ce80b36ac /sys/sys
parentb4f55763cef7b61acb16f1041f69669fc6c2ac02 (diff)
downloadsrc-0530a9360f72fa080d17eaf96b384a79b83a6e7c.tar.gz
src-0530a9360f72fa080d17eaf96b384a79b83a6e7c.zip
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
Notes
Notes: svn path=/head/; revision=327597
Diffstat (limited to 'sys/sys')
-rw-r--r--sys/sys/cpuctl.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/sys/cpuctl.h b/sys/sys/cpuctl.h
index 70212eb3a851..8c7fb65632f5 100644
--- a/sys/sys/cpuctl.h
+++ b/sys/sys/cpuctl.h
@@ -59,5 +59,6 @@ typedef struct {
#define CPUCTL_MSRSBIT _IOWR('c', 5, cpuctl_msr_args_t)
#define CPUCTL_MSRCBIT _IOWR('c', 6, cpuctl_msr_args_t)
#define CPUCTL_CPUID_COUNT _IOWR('c', 7, cpuctl_cpuid_count_args_t)
+#define CPUCTL_EVAL_CPU_FEATURES _IO('c', 8)
#endif /* _CPUCTL_H_ */