]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
x86/msr: Add explicit includes of <asm/msr.h>
authorXin Li (Intel) <xin@zytor.com>
Thu, 1 May 2025 05:42:41 +0000 (22:42 -0700)
committerIngo Molnar <mingo@kernel.org>
Fri, 2 May 2025 08:23:47 +0000 (10:23 +0200)
For historic reasons there are some TSC-related functions in the
<asm/msr.h> header, even though there's an <asm/tsc.h> header.

To facilitate the relocation of rdtsc{,_ordered}() from <asm/msr.h>
to <asm/tsc.h> and to eventually eliminate the inclusion of
<asm/msr.h> in <asm/tsc.h>, add an explicit <asm/msr.h> dependency
to the source files that reference definitions from <asm/msr.h>.

[ mingo: Clarified the changelog. ]

Signed-off-by: Xin Li (Intel) <xin@zytor.com>
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Acked-by: Dave Hansen <dave.hansen@linux.intel.com>
Acked-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Acked-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
Cc: Andy Lutomirski <luto@kernel.org>
Cc: Brian Gerst <brgerst@gmail.com>
Cc: Juergen Gross <jgross@suse.com>
Cc: H. Peter Anvin <hpa@zytor.com>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Kees Cook <keescook@chromium.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Borislav Petkov <bp@alien8.de>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: Josh Poimboeuf <jpoimboe@redhat.com>
Cc: Uros Bizjak <ubizjak@gmail.com>
Link: https://lore.kernel.org/r/20250501054241.1245648-1-xin@zytor.com
123 files changed:
arch/x86/coco/sev/core.c
arch/x86/events/amd/core.c
arch/x86/events/amd/ibs.c
arch/x86/events/amd/iommu.c
arch/x86/events/amd/lbr.c
arch/x86/events/amd/power.c
arch/x86/events/core.c
arch/x86/events/intel/bts.c
arch/x86/events/intel/core.c
arch/x86/events/intel/cstate.c
arch/x86/events/intel/ds.c
arch/x86/events/intel/knc.c
arch/x86/events/intel/p4.c
arch/x86/events/intel/p6.c
arch/x86/events/intel/pt.c
arch/x86/events/intel/uncore.c
arch/x86/events/intel/uncore_discovery.c
arch/x86/events/intel/uncore_nhmex.c
arch/x86/events/intel/uncore_snb.c
arch/x86/events/intel/uncore_snbep.c
arch/x86/events/msr.c
arch/x86/events/perf_event.h
arch/x86/events/probe.c
arch/x86/events/rapl.c
arch/x86/events/utils.c
arch/x86/events/zhaoxin/core.c
arch/x86/hyperv/hv_apic.c
arch/x86/hyperv/hv_init.c
arch/x86/hyperv/hv_spinlock.c
arch/x86/hyperv/hv_vtl.c
arch/x86/hyperv/ivm.c
arch/x86/include/asm/fred.h
arch/x86/include/asm/kvm_host.h
arch/x86/include/asm/microcode.h
arch/x86/include/asm/mshyperv.h
arch/x86/include/asm/msr.h
arch/x86/include/asm/resctrl.h
arch/x86/include/asm/suspend_32.h
arch/x86/include/asm/suspend_64.h
arch/x86/include/asm/switch_to.h
arch/x86/kernel/acpi/sleep.c
arch/x86/kernel/apic/apic.c
arch/x86/kernel/apic/apic_numachip.c
arch/x86/kernel/cet.c
arch/x86/kernel/cpu/amd.c
arch/x86/kernel/cpu/aperfmperf.c
arch/x86/kernel/cpu/bus_lock.c
arch/x86/kernel/cpu/feat_ctl.c
arch/x86/kernel/cpu/hygon.c
arch/x86/kernel/cpu/mce/inject.c
arch/x86/kernel/cpu/microcode/core.c
arch/x86/kernel/cpu/mshyperv.c
arch/x86/kernel/cpu/resctrl/core.c
arch/x86/kernel/cpu/resctrl/monitor.c
arch/x86/kernel/cpu/resctrl/pseudo_lock.c
arch/x86/kernel/cpu/resctrl/rdtgroup.c
arch/x86/kernel/cpu/sgx/main.c
arch/x86/kernel/cpu/topology.c
arch/x86/kernel/cpu/topology_amd.c
arch/x86/kernel/cpu/tsx.c
arch/x86/kernel/cpu/zhaoxin.c
arch/x86/kernel/fpu/core.c
arch/x86/kernel/fpu/xstate.c
arch/x86/kernel/fpu/xstate.h
arch/x86/kernel/fred.c
arch/x86/kernel/hpet.c
arch/x86/kernel/kvm.c
arch/x86/kernel/paravirt.c
arch/x86/kernel/process.c
arch/x86/kernel/process_64.c
arch/x86/kernel/trace_clock.c
arch/x86/kernel/traps.c
arch/x86/kernel/tsc.c
arch/x86/kernel/tsc_sync.c
arch/x86/kvm/svm/avic.c
arch/x86/kvm/svm/sev.c
arch/x86/kvm/svm/svm.c
arch/x86/kvm/vmx/nested.c
arch/x86/kvm/vmx/pmu_intel.c
arch/x86/kvm/vmx/sgx.c
arch/x86/kvm/vmx/vmx.c
arch/x86/lib/insn-eval.c
arch/x86/lib/kaslr.c
arch/x86/mm/tlb.c
arch/x86/pci/mmconfig-shared.c
arch/x86/power/cpu.c
arch/x86/realmode/init.c
arch/x86/virt/svm/sev.c
arch/x86/xen/enlighten_pv.c
arch/x86/xen/pmu.c
arch/x86/xen/suspend.c
drivers/accel/habanalabs/common/habanalabs_ioctl.c
drivers/acpi/acpi_extlog.c
drivers/acpi/processor_perflib.c
drivers/acpi/processor_throttling.c
drivers/char/agp/nvidia-agp.c
drivers/cpufreq/amd-pstate-ut.c
drivers/cpufreq/elanfreq.c
drivers/cpufreq/sc520_freq.c
drivers/crypto/ccp/sev-dev.c
drivers/edac/ie31200_edac.c
drivers/edac/mce_amd.c
drivers/hwmon/hwmon-vid.c
drivers/idle/intel_idle.c
drivers/misc/cs5535-mfgpt.c
drivers/net/vmxnet3/vmxnet3_drv.c
drivers/platform/x86/intel/ifs/core.c
drivers/platform/x86/intel/ifs/load.c
drivers/platform/x86/intel/ifs/runtest.c
drivers/platform/x86/intel/pmc/cnp.c
drivers/platform/x86/intel/speed_select_if/isst_if_common.c
drivers/platform/x86/intel/speed_select_if/isst_if_mbox_msr.c
drivers/platform/x86/intel/speed_select_if/isst_tpmi_core.c
drivers/platform/x86/intel/turbo_max_3.c
drivers/platform/x86/intel/uncore-frequency/uncore-frequency.c
drivers/powercap/intel_rapl_common.c
drivers/powercap/intel_rapl_msr.c
drivers/thermal/intel/int340x_thermal/processor_thermal_device.c
drivers/thermal/intel/intel_tcc_cooling.c
drivers/thermal/intel/x86_pkg_temp_thermal.c
drivers/video/fbdev/geode/display_gx.c
drivers/video/fbdev/geode/gxfb_core.c
drivers/video/fbdev/geode/lxfb_ops.c

index b18a33fe8dd348a58339f362cc5e23aec2e4c36b..85b16a0ee4176ed08ef6eaeb7c0d65aaf21b0291 100644 (file)
@@ -43,6 +43,7 @@
 #include <asm/apic.h>
 #include <asm/cpuid.h>
 #include <asm/cmdline.h>
+#include <asm/msr.h>
 
 #define DR7_RESET_VALUE        0x400
 
index cb62b6d12691b97f4b8291be776c0f84ea679ca1..79e8453dd051faa6c67c8f2b0b9fabe85eef903e 100644 (file)
@@ -9,6 +9,7 @@
 #include <linux/jiffies.h>
 #include <asm/apicdef.h>
 #include <asm/apic.h>
+#include <asm/msr.h>
 #include <asm/nmi.h>
 
 #include "../perf_event.h"
index 82fa755d1b120cae2ce8abb6fc6d33aec6e829fd..20877927b0213c39dded5565b457f7594ea0a691 100644 (file)
@@ -15,6 +15,7 @@
 #include <linux/sched/clock.h>
 
 #include <asm/apic.h>
+#include <asm/msr.h>
 
 #include "../perf_event.h"
 
index f8228d8243f7d8101000c63cb41109aef5303e09..a721da9987ddd2f9db5e329454abbd094e71cf20 100644 (file)
@@ -16,6 +16,8 @@
 #include <linux/slab.h>
 #include <linux/amd-iommu.h>
 
+#include <asm/msr.h>
+
 #include "../perf_event.h"
 #include "iommu.h"
 
index 198851985bb7aa906c88ceb280dfa074aaac7e4d..d24da377df7766fd74620b2801fdcfc973399965 100644 (file)
@@ -1,5 +1,6 @@
 // SPDX-License-Identifier: GPL-2.0
 #include <linux/perf_event.h>
+#include <asm/msr.h>
 #include <asm/perf_event.h>
 
 #include "../perf_event.h"
index 598a727d823a7080a8700b586cb6f629d5f4d083..dad42790cf7d56219dfab07106668047e95695d5 100644 (file)
@@ -11,6 +11,7 @@
 #include <linux/slab.h>
 #include <linux/perf_event.h>
 #include <asm/cpu_device_id.h>
+#include <asm/msr.h>
 #include "../perf_event.h"
 
 /* Event code: LSB 8 bits, passed in attr->config any other bit is reserved. */
index 64943e5ba685c39670f41e3f694f60b8ee8ae75a..7cfd3764a582320fb319cddaef609283f6eef90a 100644 (file)
@@ -32,6 +32,7 @@
 
 #include <asm/apic.h>
 #include <asm/stacktrace.h>
+#include <asm/msr.h>
 #include <asm/nmi.h>
 #include <asm/smp.h>
 #include <asm/alternative.h>
index a95e6c91c4d7cb933965c7045430a4e2b67f7719..ca9f57437d8b976870c24d0da5eb4aea8c9a1e9a 100644 (file)
@@ -17,6 +17,7 @@
 
 #include <linux/sizes.h>
 #include <asm/perf_event.h>
+#include <asm/msr.h>
 
 #include "../perf_event.h"
 
index 9ef3577d4b35581942bf76df6f1f0bdef95762e2..3d80ffb2c3743176e92a84ac1fdd26fa2f1495bd 100644 (file)
@@ -23,6 +23,7 @@
 #include <asm/intel_pt.h>
 #include <asm/apic.h>
 #include <asm/cpu_device_id.h>
+#include <asm/msr.h>
 
 #include "../perf_event.h"
 
index 56b1c391ccc731e0526edeb4ab556ca0c1f9c061..ec753e39b0077858ee51fcc22ab37110d24c1f98 100644 (file)
 #include <linux/nospec.h>
 #include <asm/cpu_device_id.h>
 #include <asm/intel-family.h>
+#include <asm/msr.h>
 #include "../perf_event.h"
 #include "../probe.h"
 
index b6b486d8530de2fd7ce9f5a8f60ab69e586ca43a..00a0a859f177747eb765c2d5fa5133945e743181 100644 (file)
@@ -10,6 +10,7 @@
 #include <asm/tlbflush.h>
 #include <asm/insn.h>
 #include <asm/io.h>
+#include <asm/msr.h>
 #include <asm/timer.h>
 
 #include "../perf_event.h"
index 425f6e6eed89fbf4c7e4517df3efeaad3fea6852..38904a5581283d31e5d1a758179e8fbfa645e5c3 100644 (file)
@@ -5,6 +5,7 @@
 #include <linux/types.h>
 
 #include <asm/hardirq.h>
+#include <asm/msr.h>
 
 #include "../perf_event.h"
 
index 24d811a9608a521a44b7410172143ee4b03d769a..aa520212675216c348bf08a2814cfc36daeaebaf 100644 (file)
@@ -13,6 +13,7 @@
 #include <asm/cpu_device_id.h>
 #include <asm/hardirq.h>
 #include <asm/apic.h>
+#include <asm/msr.h>
 
 #include "../perf_event.h"
 
index 35917a776bec1d11af5ca42321e66687e8881762..6e41de355bd89c82b302180404cc2c35c78f50bc 100644 (file)
@@ -3,6 +3,7 @@
 #include <linux/types.h>
 
 #include <asm/cpu_device_id.h>
+#include <asm/msr.h>
 
 #include "../perf_event.h"
 
index d579f10923571de86a7a05c81eb99bce246ced69..f37cce2312665b53ecc346ea155250dd77ea835f 100644 (file)
@@ -24,6 +24,7 @@
 #include <asm/io.h>
 #include <asm/intel_pt.h>
 #include <asm/cpu_device_id.h>
+#include <asm/msr.h>
 
 #include "../perf_event.h"
 #include "pt.h"
index d6070529c58e752d0ac81ad620e8e89596b84662..c24d21932c91938fb78d940284165e6dc6ef23f8 100644 (file)
@@ -3,6 +3,7 @@
 
 #include <asm/cpu_device_id.h>
 #include <asm/intel-family.h>
+#include <asm/msr.h>
 #include "uncore.h"
 #include "uncore_discovery.h"
 
index 4fc3eec325f6c2888e7021b63e23c9e0126005e7..18a3022f26a01b038ef34bac29570ce310762654 100644 (file)
@@ -5,6 +5,7 @@
  */
 #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
 
+#include <asm/msr.h>
 #include "uncore.h"
 #include "uncore_discovery.h"
 
index bef9c782c7811e72385fd0eaedb1be62f1f194b0..8962e7cb21e3ec1c05fd645d427d0025e08ec060 100644 (file)
@@ -1,6 +1,7 @@
 // SPDX-License-Identifier: GPL-2.0
 /* Nehalem-EX/Westmere-EX uncore support */
 #include <asm/cpu_device_id.h>
+#include <asm/msr.h>
 #include "uncore.h"
 
 /* NHM-EX event control */
index afc8ef02a7a9c2732311a67e21022e793da53139..a1a96833e30eb087e71b4249e2b4eb165728459f 100644 (file)
@@ -1,5 +1,6 @@
 // SPDX-License-Identifier: GPL-2.0
 /* Nehalem/SandBridge/Haswell/Broadwell/Skylake uncore support */
+#include <asm/msr.h>
 #include "uncore.h"
 #include "uncore_discovery.h"
 
index a330053407b8b17b42a05d82aa2e9ad11d47d3ac..2824dc9950be965cd1859f8af63c69c730cfecb3 100644 (file)
@@ -1,6 +1,7 @@
 // SPDX-License-Identifier: GPL-2.0
 /* SandyBridge-EP/IvyTown uncore support */
 #include <asm/cpu_device_id.h>
+#include <asm/msr.h>
 #include "uncore.h"
 #include "uncore_discovery.h"
 
index 8970ecef87c535ee06adb0e7a0a251356edff007..7f5007a4752a1738f4671fed6c90c077a7e62ecd 100644 (file)
@@ -3,6 +3,8 @@
 #include <linux/sysfs.h>
 #include <linux/nospec.h>
 #include <asm/cpu_device_id.h>
+#include <asm/msr.h>
+
 #include "probe.h"
 
 enum perf_msr_id {
index a5166fa9339b277bb305d05363d4db0592c48217..a8d4e82e3589de2f81fb566160728c2845bf57a3 100644 (file)
@@ -17,6 +17,7 @@
 #include <asm/fpu/xstate.h>
 #include <asm/intel_ds.h>
 #include <asm/cpu.h>
+#include <asm/msr.h>
 
 /* To enable MSR tracing please use the generic trace points. */
 
index fda35cf25528b304fe7630813dc58d8078cced8d..bb719d0d3f0b2ca9389b1e9ae71056886264ecdd 100644 (file)
@@ -2,6 +2,8 @@
 #include <linux/export.h>
 #include <linux/types.h>
 #include <linux/bits.h>
+
+#include <asm/msr.h>
 #include "probe.h"
 
 static umode_t
index 7ff52c23d7a124901430b3bdeb983dcf5b8779b9..defd86137f123fe2a4586c20af4cd91f7d53c207 100644 (file)
@@ -65,6 +65,7 @@
 #include <linux/nospec.h>
 #include <asm/cpu_device_id.h>
 #include <asm/intel-family.h>
+#include <asm/msr.h>
 #include "perf_event.h"
 #include "probe.h"
 
index dab4ed199227fe2d5bf0ed2f4d1158288035043e..77fd00b3305eceada8879386933f6e40f28c3625 100644 (file)
@@ -2,6 +2,7 @@
 #include <asm/insn.h>
 #include <linux/mm.h>
 
+#include <asm/msr.h>
 #include "perf_event.h"
 
 static int decode_branch_type(struct insn *insn)
index e299364eb88996b0dcdffda40becd392780256ee..91443aba4c7d6d2338fcbbf9512feff08e40a8a3 100644 (file)
@@ -15,6 +15,7 @@
 #include <asm/cpufeature.h>
 #include <asm/hardirq.h>
 #include <asm/apic.h>
+#include <asm/msr.h>
 
 #include "../perf_event.h"
 
index c450e67cb0a45a3b2232741918ab2162b5e1bae1..a079a14270913f31ec53440bd9b11ecef316e9ed 100644 (file)
@@ -28,6 +28,7 @@
 #include <asm/hypervisor.h>
 #include <asm/mshyperv.h>
 #include <asm/apic.h>
+#include <asm/msr.h>
 
 #include <asm/trace/hyperv.h>
 
index ed89867b6fd0d5fa414b54348b42e1af6370dd5a..5d27194a2efaebba68ab490fc5db8f1e226bc776 100644 (file)
@@ -21,6 +21,7 @@
 #include <asm/hypervisor.h>
 #include <hyperv/hvhdk.h>
 #include <asm/mshyperv.h>
+#include <asm/msr.h>
 #include <asm/idtentry.h>
 #include <asm/set_memory.h>
 #include <linux/kexec.h>
index 626f6d4d625309292d90141e16394c19aa56cf21..81b006601370cb6cf8de50d3af55cb2213c3fa5f 100644 (file)
@@ -15,6 +15,7 @@
 #include <asm/mshyperv.h>
 #include <asm/paravirt.h>
 #include <asm/apic.h>
+#include <asm/msr.h>
 
 static bool hv_pvspin __initdata = true;
 
index 13242ed8ff16fe1893da740bafa51549ad4043ba..079b276e5f300cb788667963b4720ebfab56ce3c 100644 (file)
@@ -11,6 +11,7 @@
 #include <asm/desc.h>
 #include <asm/i8259.h>
 #include <asm/mshyperv.h>
+#include <asm/msr.h>
 #include <asm/realmode.h>
 #include <asm/reboot.h>
 #include <../kernel/smpboot.h>
index 1b8a2415183b746d59e2eae52ab99b598203cd0b..8209de792388058558daebc34e9aa4bd10ee9250 100644 (file)
@@ -22,6 +22,7 @@
 #include <asm/realmode.h>
 #include <asm/e820/api.h>
 #include <asm/desc.h>
+#include <asm/msr.h>
 #include <uapi/asm/vmx.h>
 
 #ifdef CONFIG_AMD_MEM_ENCRYPT
index 2a29e5216881536a63306f11098ac0ac9de0e71e..12b34d5b2953ea8f75f5621b00ef8ca54e063a57 100644 (file)
@@ -9,6 +9,7 @@
 #include <linux/const.h>
 
 #include <asm/asm.h>
+#include <asm/msr.h>
 #include <asm/trapnr.h>
 
 /*
index 3131abcac4f1c5fabadf383b7bc8ae3cf89677d9..9c971f84610806fce0532b69c64f0591702aa346 100644 (file)
@@ -34,6 +34,7 @@
 #include <asm/desc.h>
 #include <asm/mtrr.h>
 #include <asm/msr-index.h>
+#include <asm/msr.h>
 #include <asm/asm.h>
 #include <asm/irq_remapping.h>
 #include <asm/kvm_page_track.h>
index 263ea3dd0001cd22e042f2cb3a8bd783bcfacb1c..107a1aaa211ba65333e5e4cd10cbb7090bea96a5 100644 (file)
@@ -2,6 +2,8 @@
 #ifndef _ASM_X86_MICROCODE_H
 #define _ASM_X86_MICROCODE_H
 
+#include <asm/msr.h>
+
 struct cpu_signature {
        unsigned int sig;
        unsigned int pf;
index bab5ccfc60a7485989bc322a98742ee404cea039..15d00dace70fa8a90e86bde45ad984d8f90e910d 100644 (file)
@@ -8,6 +8,7 @@
 #include <linux/io.h>
 #include <asm/nospec-branch.h>
 #include <asm/paravirt.h>
+#include <asm/msr.h>
 #include <hyperv/hvhdk.h>
 
 /*
index 856d660c926d0a882644d66a51f21803b5295d8a..35a78d2721a396cf8e24754845327c81406a467d 100644 (file)
@@ -12,6 +12,7 @@
 #include <uapi/asm/msr.h>
 #include <asm/shared/msr.h>
 
+#include <linux/types.h>
 #include <linux/percpu.h>
 
 struct msr_info {
index 011bf67a18664faab42a74a3aba1af2aa488eb8b..bd6afe805cf67a3127d84552d2b058a427cc33ea 100644 (file)
@@ -9,6 +9,8 @@
 #include <linux/resctrl_types.h>
 #include <linux/sched.h>
 
+#include <asm/msr.h>
+
 /*
  * This value can never be a valid CLOSID, and is used when mapping a
  * (closid, rmid) pair to an index and back. On x86 only the RMID is
index d8416b3bf832e420357a4a41a22052889d52852c..e8e5aab06255fbd0e5748b4c20adcf3bc28fcfa9 100644 (file)
@@ -9,6 +9,7 @@
 
 #include <asm/desc.h>
 #include <asm/fpu/api.h>
+#include <asm/msr.h>
 
 /* image of the saved processor state */
 struct saved_context {
index 54df06687d8348acbce916d589c53ddf73198ea2..b512f9665f7865235a06d034607047575943fb0f 100644 (file)
@@ -9,6 +9,7 @@
 
 #include <asm/desc.h>
 #include <asm/fpu/api.h>
+#include <asm/msr.h>
 
 /*
  * Image of the saved processor state, used by the low level ACPI suspend to
index 75248546403d79ecc15d783ee1df1c97801bbf9e..4f21df7af71501e68abcc507cc7ad84561b7776a 100644 (file)
@@ -52,6 +52,8 @@ do {                                                                  \
 } while (0)
 
 #ifdef CONFIG_X86_32
+#include <asm/msr.h>
+
 static inline void refresh_sysenter_cs(struct thread_struct *thread)
 {
        /* Only happens when SEP is enabled, no need to test "SEP"arately: */
index 6dfecb27b84611e9b1fa3bde3e60426812d657e6..91fa262f0e3056811d7f286dc7739386b7278425 100644 (file)
@@ -16,6 +16,7 @@
 #include <asm/cacheflush.h>
 #include <asm/realmode.h>
 #include <asm/hypervisor.h>
+#include <asm/msr.h>
 #include <asm/smp.h>
 
 #include <linux/ftrace.h>
index a05871c85183da333e68aaa22deb0babc50e85ab..d73ba5a7b623d4c77f88e88925362ea4ef1fedad 100644 (file)
@@ -59,6 +59,7 @@
 #include <asm/time.h>
 #include <asm/smp.h>
 #include <asm/mce.h>
+#include <asm/msr.h>
 #include <asm/tsc.h>
 #include <asm/hypervisor.h>
 #include <asm/cpu_device_id.h>
index fcfef701c17a2dc7adfea97d5dd7801cad67d561..e272bc7fdc8ec31a1b802ce73b078e75abc76c03 100644 (file)
@@ -14,6 +14,7 @@
 #include <linux/init.h>
 #include <linux/pgtable.h>
 
+#include <asm/msr.h>
 #include <asm/numachip/numachip.h>
 #include <asm/numachip/numachip_csr.h>
 
index d897aadd1d44a94ae8118850d12748fad1f5a9e3..99444409c026786d71cde8edbd2798bdef4f6e2c 100644 (file)
@@ -2,6 +2,7 @@
 
 #include <linux/ptrace.h>
 #include <asm/bugs.h>
+#include <asm/msr.h>
 #include <asm/traps.h>
 
 enum cp_error_code {
index 1f7925e45b46d7e7833d5e306f27c40fa2165003..e153cd1d36fe7d12492245af359f4bcbcec672f0 100644 (file)
@@ -21,6 +21,7 @@
 #include <asm/delay.h>
 #include <asm/debugreg.h>
 #include <asm/resctrl.h>
+#include <asm/msr.h>
 #include <asm/sev.h>
 
 #ifdef CONFIG_X86_64
index e99892aad6281a530521acd5bf7a529d182df5cc..a315b0627dfb14a4704050be6133b5f65c7d4063 100644 (file)
@@ -20,6 +20,7 @@
 #include <asm/cpu.h>
 #include <asm/cpu_device_id.h>
 #include <asm/intel-family.h>
+#include <asm/msr.h>
 
 #include "cpu.h"
 
index a18d0f2ea8326e9ad97de4f20ecf5d6c05715273..981f8b1f07922cd9c11c187f9f6296da73444303 100644 (file)
@@ -10,6 +10,7 @@
 #include <asm/cmdline.h>
 #include <asm/traps.h>
 #include <asm/cpu.h>
+#include <asm/msr.h>
 
 enum split_lock_detect_state {
        sld_off = 0,
index 441174844e018364b47e413b7bea2178856dd0b3..d69757246bde7da97b38b0a19ff69327ea075aa7 100644 (file)
@@ -4,6 +4,7 @@
 #include <asm/cpu.h>
 #include <asm/cpufeature.h>
 #include <asm/msr-index.h>
+#include <asm/msr.h>
 #include <asm/processor.h>
 #include <asm/vmx.h>
 
index 21541e310c2cb02442f919c868557e2bf108d8a7..2154f12766fb5ab95625a79cf6c4487dd5ba3f1b 100644 (file)
@@ -15,6 +15,7 @@
 #include <asm/cacheinfo.h>
 #include <asm/spec-ctrl.h>
 #include <asm/delay.h>
+#include <asm/msr.h>
 
 #include "cpu.h"
 
index 338aeee95bd24b0cb30ebf04d8de3e0b189e60e6..e13f533e31e681cb8a520847dffa2fbbda5c5ab0 100644 (file)
@@ -28,6 +28,7 @@
 #include <asm/apic.h>
 #include <asm/irq_vectors.h>
 #include <asm/mce.h>
+#include <asm/msr.h>
 #include <asm/nmi.h>
 #include <asm/smp.h>
 
index b3658d11e7b69224a0e9e59be9d730ae7b9b5f06..793e2927d0fa323a296a4d245b039326c7eb5302 100644 (file)
@@ -37,6 +37,7 @@
 #include <asm/perf_event.h>
 #include <asm/processor.h>
 #include <asm/cmdline.h>
+#include <asm/msr.h>
 #include <asm/setup.h>
 
 #include "internal.h"
index b924befe8d6ef34c411b3b1d2652f4b8ebd7aae8..c78f860419d697c91349b28853c288fb6b2e41f6 100644 (file)
@@ -30,6 +30,7 @@
 #include <asm/reboot.h>
 #include <asm/nmi.h>
 #include <clocksource/hyperv_timer.h>
+#include <asm/msr.h>
 #include <asm/numa.h>
 #include <asm/svm.h>
 
index 280d6900726becbed4f57f21f57ad7015fe691a7..d987b11c168c69d994ac6d908b1f0ff1410cde3a 100644 (file)
@@ -22,6 +22,7 @@
 #include <linux/cpuhotplug.h>
 
 #include <asm/cpu_device_id.h>
+#include <asm/msr.h>
 #include <asm/resctrl.h>
 #include "internal.h"
 
index f73a74945ffa86d6075f747fa5aeb817d83a8f2e..591b0b44d2609b245586532ae502a9fab927cba9 100644 (file)
@@ -23,6 +23,7 @@
 #include <linux/slab.h>
 
 #include <asm/cpu_device_id.h>
+#include <asm/msr.h>
 #include <asm/resctrl.h>
 
 #include "internal.h"
index 2a82eb6a037625da886afb1cf98a3458ca23804f..26c354bdea07fe12b905c81117494143eb5983bd 100644 (file)
@@ -25,6 +25,7 @@
 #include <asm/cpu_device_id.h>
 #include <asm/resctrl.h>
 #include <asm/perf_event.h>
+#include <asm/msr.h>
 
 #include "../../events/perf_event.h" /* For X86_CONFIG() */
 #include "internal.h"
index f4a2ee2a64042e9e7389a1fa39fde0c8f53c2c0c..f724b8f6a6a41a79d08296e7a21313fbbc8ab9d2 100644 (file)
@@ -28,6 +28,7 @@
 
 #include <uapi/linux/magic.h>
 
+#include <asm/msr.h>
 #include <asm/resctrl.h>
 #include "internal.h"
 
index 40967d8f995a4f2df30c014389f6a8a2c79c4718..6722b2fc82cf0911328e4f7c1c59795ae2fe7ccd 100644 (file)
@@ -14,6 +14,7 @@
 #include <linux/slab.h>
 #include <linux/sysfs.h>
 #include <linux/vmalloc.h>
+#include <asm/msr.h>
 #include <asm/sgx.h>
 #include "driver.h"
 #include "encl.h"
index 6e1885dece0fd4fef87f822bebde21685aae39a2..e35ccdc84910f5e3bc82f5148ef574b2a8dc44bb 100644 (file)
@@ -30,6 +30,7 @@
 #include <asm/hypervisor.h>
 #include <asm/io_apic.h>
 #include <asm/mpspec.h>
+#include <asm/msr.h>
 #include <asm/smp.h>
 
 #include "cpu.h"
index 535dcf511096fe19995b10e7215e0f83f3463b3a..f78d38510027ec768870b54a8f0042c1c597b06a 100644 (file)
@@ -3,6 +3,7 @@
 
 #include <asm/apic.h>
 #include <asm/memtype.h>
+#include <asm/msr.h>
 #include <asm/processor.h>
 
 #include "cpu.h"
index b0a9c9e9d029765a5d58933ad9c644904da7ea8a..49782724a94304030089da7fcc95f5aac1a9f180 100644 (file)
@@ -12,6 +12,7 @@
 
 #include <asm/cmdline.h>
 #include <asm/cpu.h>
+#include <asm/msr.h>
 
 #include "cpu.h"
 
index 90eba7eb53357153d4ad700a79bf0e7c4f9670f3..89b1c8a70fe8decc9d26e24cc182467ebe0e816c 100644 (file)
@@ -4,6 +4,7 @@
 
 #include <asm/cpu.h>
 #include <asm/cpufeature.h>
+#include <asm/msr.h>
 
 #include "cpu.h"
 
index 985dfffe28c16c8eb1caae3325b2001ee92b55b6..e92d27324d9ab5ac16913e92680de25935d3ba22 100644 (file)
@@ -11,6 +11,7 @@
 #include <asm/fpu/sched.h>
 #include <asm/fpu/signal.h>
 #include <asm/fpu/types.h>
+#include <asm/msr.h>
 #include <asm/traps.h>
 #include <asm/irq_regs.h>
 
index 2bd87b7886301914b470ff503569937ac448308a..86d690afb63c78969b8051b321efa776a5037091 100644 (file)
@@ -21,6 +21,7 @@
 #include <asm/fpu/xcr.h>
 
 #include <asm/cpuid.h>
+#include <asm/msr.h>
 #include <asm/tlbflush.h>
 #include <asm/prctl.h>
 #include <asm/elf.h>
index 5e5d35027f13d6210f5e5eccd9b19e94c38520a9..f705bd355ea21638b629c0876e1a29035a0096b4 100644 (file)
@@ -5,6 +5,7 @@
 #include <asm/cpufeature.h>
 #include <asm/fpu/xstate.h>
 #include <asm/fpu/xcr.h>
+#include <asm/msr.h>
 
 #ifdef CONFIG_X86_64
 DECLARE_PER_CPU(u64, xfd_state);
index 10b0169f3fc1b08a18d2918538609e95102ee8ac..816187da3a47c27e694eb767d4557c5532b68735 100644 (file)
@@ -3,6 +3,7 @@
 
 #include <asm/desc.h>
 #include <asm/fred.h>
+#include <asm/msr.h>
 #include <asm/tlbflush.h>
 #include <asm/traps.h>
 
index cc5d122322164b49d6052e6422b54e873919f688..c9982a7c9536abce9cded102b94be984f4377785 100644 (file)
@@ -12,6 +12,7 @@
 #include <asm/hpet.h>
 #include <asm/time.h>
 #include <asm/mwait.h>
+#include <asm/msr.h>
 
 #undef  pr_fmt
 #define pr_fmt(fmt) "hpet: " fmt
index 44a45df7200a008ffa8dab17ffa4adfb13e92547..27f7192e1c6193a634b03cfc6e895a43c7241c33 100644 (file)
@@ -40,6 +40,7 @@
 #include <asm/mtrr.h>
 #include <asm/tlb.h>
 #include <asm/cpuidle_haltpoll.h>
+#include <asm/msr.h>
 #include <asm/ptrace.h>
 #include <asm/reboot.h>
 #include <asm/svm.h>
index 1ccd05d8999f1df13655d3f5c925a6b9a1770d50..015bf298434fbd068e813a9057fe680cea537f55 100644 (file)
@@ -33,6 +33,7 @@
 #include <asm/tlb.h>
 #include <asm/io_bitmap.h>
 #include <asm/gsseg.h>
+#include <asm/msr.h>
 
 /* stub always returning 0. */
 DEFINE_ASM_FUNC(paravirt_ret0, "xor %eax,%eax", .entry.text);
index c168f99b5f0bd2b3a1ccc59665062444bfc52536..bd50249cff50bb4f74139fade0264029b46f0180 100644 (file)
@@ -52,6 +52,7 @@
 #include <asm/unwind.h>
 #include <asm/tdx.h>
 #include <asm/mmu_context.h>
+#include <asm/msr.h>
 #include <asm/shstk.h>
 
 #include "process.h"
index 24e1ccf229125e242ab03373ec2fca93603345b1..cfa9c031de911bef9690c6f04a563fd1f89f10e0 100644 (file)
@@ -57,6 +57,7 @@
 #include <asm/unistd.h>
 #include <asm/fsgsbase.h>
 #include <asm/fred.h>
+#include <asm/msr.h>
 #ifdef CONFIG_IA32_EMULATION
 /* Not included via unistd.h */
 #include <asm/unistd_32_ia32.h>
index b8e7abe00b065e08a3982dad5e19eef70f2a191d..708d61743d1536b572597fa93dc74bb427ef1be7 100644 (file)
@@ -4,7 +4,7 @@
  */
 #include <asm/trace_clock.h>
 #include <asm/barrier.h>
-#include <asm/msr.h>
+#include <asm/tsc.h>
 
 /*
  * trace_clock_x86_tsc(): A clock that is just the cycle counter.
index 823410aaf429df236a4b51619f7dad68a9f7402e..ca43eb5a02a3152bbf36da96949542b0b8991882 100644 (file)
@@ -68,6 +68,7 @@
 #include <asm/vdso.h>
 #include <asm/tdx.h>
 #include <asm/cfi.h>
+#include <asm/msr.h>
 
 #ifdef CONFIG_X86_64
 #include <asm/x86_init.h>
index 160fef71b9a3e771e9ec8fa28ec13450ccbeedaa..5d3a764ba77c40fbf962692a29c8b6ebf2edd44f 100644 (file)
@@ -29,6 +29,7 @@
 #include <asm/apic.h>
 #include <asm/cpu_device_id.h>
 #include <asm/i8259.h>
+#include <asm/msr.h>
 #include <asm/topology.h>
 #include <asm/uv/uv.h>
 #include <asm/sev.h>
index f1c7a86dbf49f081255904522cf6800c72dafc71..ec3aa340d351dc49f42c14489819caf544e89456 100644 (file)
@@ -21,6 +21,7 @@
 #include <linux/kernel.h>
 #include <linux/smp.h>
 #include <linux/nmi.h>
+#include <asm/msr.h>
 #include <asm/tsc.h>
 
 struct tsc_adjust {
index d0f28f6880e20d799d19468723942eb067f75ed1..067f8e3f5a0dc5b6d9f8655ade826697e3a28378 100644 (file)
@@ -20,6 +20,7 @@
 #include <linux/kvm_host.h>
 
 #include <asm/irq_remapping.h>
+#include <asm/msr.h>
 
 #include "trace.h"
 #include "lapic.h"
index a4aabd666665d26d70beab8bfd95afbd8f41b697..4b607cc377c97e7412ade5cc86858983e110081d 100644 (file)
@@ -26,6 +26,7 @@
 #include <asm/fpu/xcr.h>
 #include <asm/fpu/xstate.h>
 #include <asm/debugreg.h>
+#include <asm/msr.h>
 #include <asm/sev.h>
 
 #include "mmu.h"
index 67657b3a36cee8b8350a7ec9863117e6c94f21f1..c23f620989ed2b27e5f381171129b36c3546a64b 100644 (file)
@@ -31,6 +31,7 @@
 #include <linux/string_choices.h>
 
 #include <asm/apic.h>
+#include <asm/msr.h>
 #include <asm/perf_event.h>
 #include <asm/tlbflush.h>
 #include <asm/desc.h>
index a7fea622e204d567527eb144dbc87fd0f9b39933..d268224227f0f828fd1ced2ae75502b1db5711a4 100644 (file)
@@ -6,6 +6,7 @@
 
 #include <asm/debugreg.h>
 #include <asm/mmu_context.h>
+#include <asm/msr.h>
 
 #include "x86.h"
 #include "cpuid.h"
index 5e0bb821c7bcb4ec7f2236655eeaf830d5e8b21d..231a9633359c1c8d0f1d1fc6ed5c1bef1a994e62 100644 (file)
@@ -13,6 +13,7 @@
 #include <linux/types.h>
 #include <linux/kvm_host.h>
 #include <linux/perf_event.h>
+#include <asm/msr.h>
 #include <asm/perf_event.h>
 #include "x86.h"
 #include "cpuid.h"
index 949864259ee67ac3372712f880f83f1a80fe48e4..df1d0cf76947531387b804be1710eca9592f7213 100644 (file)
@@ -2,6 +2,7 @@
 /*  Copyright(c) 2021 Intel Corporation. */
 #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
 
+#include <asm/msr.h>
 #include <asm/sgx.h>
 
 #include "x86.h"
index cd0d6c1fcf9cfc48fea8546f76d6bb04384db627..d8412cfdb18e8befd8892cd80144343fec129679 100644 (file)
@@ -46,6 +46,7 @@
 #include <asm/perf_event.h>
 #include <asm/mmu_context.h>
 #include <asm/mshyperv.h>
+#include <asm/msr.h>
 #include <asm/mwait.h>
 #include <asm/spec-ctrl.h>
 #include <asm/vmx.h>
index da5af3cc25b14b6b7e50021d678ce1ab0c5edb68..dbe0fbf0037f9bf48168b2ec7b488cfd8415adbd 100644 (file)
@@ -13,6 +13,7 @@
 #include <asm/insn.h>
 #include <asm/insn-eval.h>
 #include <asm/ldt.h>
+#include <asm/msr.h>
 #include <asm/vm86.h>
 
 #undef pr_fmt
index a58f451a7dd32e30215019ca35ffab444c8ccc43..b5893928d55c76adc13ccfd9ed528b1dffe78385 100644 (file)
@@ -8,7 +8,7 @@
  */
 #include <asm/asm.h>
 #include <asm/kaslr.h>
-#include <asm/msr.h>
+#include <asm/tsc.h>
 #include <asm/archrandom.h>
 #include <asm/e820/api.h>
 #include <asm/shared/io.h>
index 7c35b500ce499d264c9da22c5013c1d986823260..33645dde7f3bd27f276f29fee73f170e43b9ba39 100644 (file)
@@ -19,6 +19,7 @@
 #include <asm/cache.h>
 #include <asm/cacheflush.h>
 #include <asm/apic.h>
+#include <asm/msr.h>
 #include <asm/perf_event.h>
 #include <asm/tlb.h>
 
index 39255f0eb14dfc2e2691962d004a3ef9cbee09c6..1f45223259204de2db8a61cbda73388514d37341 100644 (file)
 #include <linux/slab.h>
 #include <linux/mutex.h>
 #include <linux/rculist.h>
+#include <asm/acpi.h>
 #include <asm/e820/api.h>
+#include <asm/msr.h>
 #include <asm/pci_x86.h>
-#include <asm/acpi.h>
 
 /* Indicate if the ECAM resources have been placed into the resource table */
 static bool pci_mmcfg_running_state;
index d5a7b3bc245366ca8465f4bbed1247462e9a5fa0..916441f5e85ced69cc4f08cb8f10980615ab3449 100644 (file)
@@ -27,6 +27,7 @@
 #include <asm/mmu_context.h>
 #include <asm/cpu_device_id.h>
 #include <asm/microcode.h>
+#include <asm/msr.h>
 #include <asm/fred.h>
 
 #ifdef CONFIG_X86_32
index 263787b4800c4dfb9736372a56f16c4d7c91648e..ed5c63c0b4e5a0c860a1632ed5fd2bc99d2329c7 100644 (file)
@@ -9,6 +9,7 @@
 #include <asm/realmode.h>
 #include <asm/tlbflush.h>
 #include <asm/crash.h>
+#include <asm/msr.h>
 #include <asm/sev.h>
 
 struct real_mode_header *real_mode_header;
index 334177c89df02504838ef1c34a278a25340bbf95..76926f75e9bf7e4742b8eccec6afc51f0a712dff 100644 (file)
@@ -30,6 +30,7 @@
 #include <asm/cpuid.h>
 #include <asm/cmdline.h>
 #include <asm/iommu.h>
+#include <asm/msr.h>
 
 /*
  * The RMP entry information as returned by the RMPREAD instruction.
index 846b5737d3209b4f31ac7f77f3d492bd4e5101c1..8ddd9e535f996e279636c5ac9adf54c706774b81 100644 (file)
@@ -61,6 +61,7 @@
 #include <asm/processor.h>
 #include <asm/proto.h>
 #include <asm/msr-index.h>
+#include <asm/msr.h>
 #include <asm/traps.h>
 #include <asm/setup.h>
 #include <asm/desc.h>
index f06987b0efc3a6aa663b16cf9abd84ff46624787..3cb566d4aaad2ff82215c1ab6454018a1f4b0471 100644 (file)
@@ -2,6 +2,7 @@
 #include <linux/types.h>
 #include <linux/interrupt.h>
 
+#include <asm/msr.h>
 #include <asm/xen/hypercall.h>
 #include <xen/xen.h>
 #include <xen/page.h>
index 7bb3ac2d5ac88b436809fb72b60e7487f54165b9..ba2f17e643215db824673a64afe014b2569cabfd 100644 (file)
@@ -13,6 +13,7 @@
 #include <asm/xen/hypercall.h>
 #include <asm/xen/page.h>
 #include <asm/fixmap.h>
+#include <asm/msr.h>
 
 #include "xen-ops.h"
 
index 8729a0c57d7811af3ff472dadf0490abcb49b5f0..dc80ca921d908d89da12460afaea11aaecb19417 100644 (file)
@@ -17,8 +17,6 @@
 #include <linux/uaccess.h>
 #include <linux/vmalloc.h>
 
-#include <asm/msr.h>
-
 /* make sure there is space for all the signed info */
 static_assert(sizeof(struct cpucp_info) <= SEC_DEV_INFO_BUF_SZ);
 
index 8465822b6672cd7ba19802ceaab1e2db1ffc5543..f6b9562779de049866c06aa2d00255e1a02a4c9c 100644 (file)
@@ -15,6 +15,7 @@
 #include <acpi/ghes.h>
 #include <asm/cpu.h>
 #include <asm/mce.h>
+#include <asm/msr.h>
 
 #include "apei/apei-internal.h"
 #include <ras/ras_event.h>
index 53996f1a2d80e94594633363478a42c9c53d89fb..64b8d1e1959431f43d338095836ecf0b578ba0c2 100644 (file)
@@ -20,6 +20,7 @@
 #include <acpi/processor.h>
 #ifdef CONFIG_X86
 #include <asm/cpufeature.h>
+#include <asm/msr.h>
 #endif
 
 #define ACPI_PROCESSOR_FILE_PERFORMANCE        "performance"
index 00d045e5f52496314085644493d2947515e24ec3..ecd7fe2561531dab8c26142d4a955d5e9c74ca20 100644 (file)
 #include <linux/sched.h>
 #include <linux/cpufreq.h>
 #include <linux/acpi.h>
+#include <linux/uaccess.h>
 #include <acpi/processor.h>
 #include <asm/io.h>
-#include <linux/uaccess.h>
+#include <asm/asm.h>
+#ifdef CONFIG_X86
+#include <asm/msr.h>
+#endif
 
 /* ignore_tpc:
  *  0 -> acpi processor driver doesn't ignore _TPC values
index e424360fb4a17a827984b8e52c02fcf75c9ad77b..4787391bb6b4fb43ff87323dffd4233fbb64f465 100644 (file)
@@ -11,6 +11,7 @@
 #include <linux/page-flags.h>
 #include <linux/mm.h>
 #include <linux/jiffies.h>
+#include <asm/msr.h>
 #include "agp.h"
 
 /* NVIDIA registers */
index 707fa81c749f56d10757a3cf8b4cef758c62aadf..c8d031b297d2e6c12638178036aaf74af8d810d7 100644 (file)
@@ -31,6 +31,8 @@
 
 #include <acpi/cppc_acpi.h>
 
+#include <asm/msr.h>
+
 #include "amd-pstate.h"
 
 
index 36494b855e41843b1cf3c779e16c5708d353051a..fc5a58088b35cfa3133733f32bbcff843ec8cf93 100644 (file)
@@ -21,7 +21,6 @@
 #include <linux/cpufreq.h>
 
 #include <asm/cpu_device_id.h>
-#include <asm/msr.h>
 #include <linux/timex.h>
 #include <linux/io.h>
 
index 103d2519dff7704adf06836f83fac1aaa03d6a8f..b360f03a116f33e2a0e7b989434223c890c984ae 100644 (file)
@@ -21,7 +21,6 @@
 #include <linux/io.h>
 
 #include <asm/cpu_device_id.h>
-#include <asm/msr.h>
 
 #define MMCR_BASE      0xfffef000      /* The default base address */
 #define OFFS_CPUCTL    0x2   /* CPU Control Register */
index bb8a25ef5b4338b2b20fe6f4f2039e1e88c83323..ec8b37a7f40c7f7daf3d764a304b107bf6238eda 100644 (file)
@@ -33,6 +33,7 @@
 #include <asm/cacheflush.h>
 #include <asm/e820/types.h>
 #include <asm/sev.h>
+#include <asm/msr.h>
 
 #include "psp-dev.h"
 #include "sev-dev.h"
index 204834149579878602b3ebda3c03f2b2ce32d7fd..5ddd83dc94ba218813c0c3b2ddf876d3c0dcc2c1 100644 (file)
@@ -52,6 +52,7 @@
 
 #include <linux/io-64-nonatomic-lo-hi.h>
 #include <asm/mce.h>
+#include <asm/msr.h>
 #include "edac_module.h"
 
 #define EDAC_MOD_STR "ie31200_edac"
index 50d74d3bf0f55fb46666147c029b4108cffd1b82..af3c12284a1e5c69bd047ed27beb3affbb60a99b 100644 (file)
@@ -3,6 +3,7 @@
 #include <linux/slab.h>
 
 #include <asm/cpu.h>
+#include <asm/msr.h>
 
 #include "mce_amd.h"
 
index 6d1175a5183264e8f4ef39e9e86ce6510fd65c35..2df4956296ed54fcd84742714f1fcf8aa2ef0385 100644 (file)
 #include <linux/kernel.h>
 #include <linux/hwmon-vid.h>
 
+#ifdef CONFIG_X86
+#include <asm/msr.h>
+#endif
+
 /*
  * Common code for decoding VID pins.
  *
index 517b28a85560e1b3dd91ae93c6333c1b354eb2b3..6a1712b50c7f1f0c30601488d583e64c5ed5cc2a 100644 (file)
@@ -56,6 +56,7 @@
 #include <asm/intel-family.h>
 #include <asm/mwait.h>
 #include <asm/spec-ctrl.h>
+#include <asm/msr.h>
 #include <asm/tsc.h>
 #include <asm/fpu/api.h>
 #include <asm/smp.h>
index 18fc1aaa5cddfc659b9b1fa37aaa1a5b84701e5c..2b6778d8d1664e1ad438375bdb8145f77637fd4a 100644 (file)
@@ -16,6 +16,7 @@
 #include <linux/platform_device.h>
 #include <linux/cs5535.h>
 #include <linux/slab.h>
+#include <asm/msr.h>
 
 #define DRV_NAME "cs5535-mfgpt"
 
index 3df6aabc7e339e675679140d5105639d8df227d9..7edd0b5e0e77d176175352f03a3ab50a39cde17c 100644 (file)
 #include <linux/module.h>
 #include <net/ip6_checksum.h>
 
+#ifdef CONFIG_X86
+#include <asm/msr.h>
+#endif
+
 #include "vmxnet3_int.h"
 #include "vmxnet3_xdp.h"
 
index c4328a7ae0833a35c922426ee7ee631d9c5efb41..b73e582128c95e4e8814561ceaee53a08bf432d7 100644 (file)
@@ -8,6 +8,7 @@
 #include <linux/slab.h>
 
 #include <asm/cpu_device_id.h>
+#include <asm/msr.h>
 
 #include "ifs.h"
 
index 0289391eccde6d0664d8ba75bca00c718793b578..50f1fdf7dfed85b5962e10a8ad9c66de9bf40594 100644 (file)
@@ -5,6 +5,7 @@
 #include <linux/sizes.h>
 #include <asm/cpu.h>
 #include <asm/microcode.h>
+#include <asm/msr.h>
 
 #include "ifs.h"
 
index 6b6ed7be461aaacaafe07c524557dddc09b129d8..dfc119d7354d70080e9b9633559620ed572d47d5 100644 (file)
@@ -7,6 +7,7 @@
 #include <linux/nmi.h>
 #include <linux/slab.h>
 #include <linux/stop_machine.h>
+#include <asm/msr.h>
 
 #include "ifs.h"
 
index 547bdf1ab02d8aa5ee5f937bce7a878e33918e41..efea4e1ba52bf13fb98bfd288e0d481df4685e0a 100644 (file)
@@ -10,6 +10,7 @@
 
 #include <linux/smp.h>
 #include <linux/suspend.h>
+#include <asm/msr.h>
 #include "core.h"
 
 /* Cannon Lake: PGD PFET Enable Ack Status Register(s) bitmap */
index 44dcd165b4c079b405f0d0c492bc5c857730f41d..8a57135938114b8ff032936e06ccaab02398b9a5 100644 (file)
@@ -21,6 +21,7 @@
 
 #include <asm/cpu_device_id.h>
 #include <asm/intel-family.h>
+#include <asm/msr.h>
 
 #include "isst_if_common.h"
 
index 78989f649aeabe2a9460826bd69062690538e867..22745b217c6fabd727f5978176b851e010a4e71e 100644 (file)
@@ -18,6 +18,7 @@
 #include <uapi/linux/isst_if.h>
 #include <asm/cpu_device_id.h>
 #include <asm/intel-family.h>
+#include <asm/msr.h>
 
 #include "isst_if_common.h"
 
index 0b8ef0cfaf80ec2e2e533ac8cf29c6906412b783..4d30d5360c8f59d28ff6ac0fee8402a8d60c811b 100644 (file)
@@ -27,6 +27,7 @@
 #include <linux/kernel.h>
 #include <linux/minmax.h>
 #include <linux/module.h>
+#include <asm/msr.h>
 #include <uapi/linux/isst_if.h>
 
 #include "isst_tpmi_core.h"
index 7e538bbd5b5088b8a48f96e0d13ba9e9a1579386..b5af3e91ba0427a614e344375bc51b8966950c47 100644 (file)
@@ -17,6 +17,7 @@
 
 #include <asm/cpu_device_id.h>
 #include <asm/intel-family.h>
+#include <asm/msr.h>
 
 #define MSR_OC_MAILBOX                 0x150
 #define MSR_OC_MAILBOX_CMD_OFFSET      32
index 6f873765d2d1d4a0b5f6bd264bc92c9bf1407f6b..96f854c21bb53a5e795c7013cf92997632fefe4b 100644 (file)
@@ -21,6 +21,7 @@
 #include <linux/suspend.h>
 #include <asm/cpu_device_id.h>
 #include <asm/intel-family.h>
+#include <asm/msr.h>
 
 #include "uncore-frequency-common.h"
 
index 5ab3feb296868d961219bf1eab7ecc8573acae4a..e3be40adc0d7a9f1be2e5a633dcb5dbdc7fc5299 100644 (file)
@@ -28,6 +28,7 @@
 #include <asm/cpu_device_id.h>
 #include <asm/intel-family.h>
 #include <asm/iosf_mbi.h>
+#include <asm/msr.h>
 
 /* bitmasks for RAPL MSRs, used by primitive access functions */
 #define ENERGY_STATUS_MASK      0xffffffff
index 6d5853db17adba2ba8ad3ccd005e6a86e2070970..8ad2115d65f6523ec9e7cdd387257ae9ae3a7229 100644 (file)
@@ -24,6 +24,7 @@
 
 #include <asm/cpu_device_id.h>
 #include <asm/intel-family.h>
+#include <asm/msr.h>
 
 /* Local defines */
 #define MSR_PLATFORM_POWER_LIMIT       0x0000065C
index b0249468b844c22da34865f5fe38409578c5f244..57cf46f69669caccacf0ef4acd346c526d5a9491 100644 (file)
@@ -9,6 +9,7 @@
 #include <linux/module.h>
 #include <linux/pci.h>
 #include <linux/thermal.h>
+#include <asm/msr.h>
 #include "int340x_thermal_zone.h"
 #include "processor_thermal_device.h"
 #include "../intel_soc_dts_iosf.h"
index 0394897e83cf94112db8edd8428625a7a512ebe9..f352ecafbedf070f5fc7de435cde1240672051c1 100644 (file)
@@ -11,6 +11,7 @@
 #include <linux/module.h>
 #include <linux/thermal.h>
 #include <asm/cpu_device_id.h>
+#include <asm/msr.h>
 
 #define TCC_PROGRAMMABLE       BIT(30)
 #define TCC_LOCKED             BIT(31)
index 496abf8e55e0d53492efc57e02fa5c3955172f49..4894a26b1e4e68b75a557326ac41d2ccd290fe48 100644 (file)
@@ -20,6 +20,7 @@
 #include <linux/debugfs.h>
 
 #include <asm/cpu_device_id.h>
+#include <asm/msr.h>
 
 #include "thermal_interrupt.h"
 
index b5f25dffd274788fed21f77cb0dcbfc17a24edb7..099322cefce0eaab646a5531e09e7fe00fad2e87 100644 (file)
@@ -13,6 +13,7 @@
 #include <asm/io.h>
 #include <asm/div64.h>
 #include <asm/delay.h>
+#include <asm/msr.h>
 #include <linux/cs5535.h>
 
 #include "gxfb.h"
index 2b27d6540805e75554c424316f768e429e1d6e1f..8d69be7c9d31f77f812d1d04cff1765bea256f16 100644 (file)
@@ -29,6 +29,7 @@
 #include <linux/pci.h>
 #include <linux/cs5535.h>
 
+#include <asm/msr.h>
 #include <asm/olpc.h>
 
 #include "gxfb.h"
index a27531b5de11ca4509d9b7c888348ab8b966a787..2e33da9849b08bd6ff93c0609cf2119eb682ff07 100644 (file)
@@ -11,6 +11,7 @@
 #include <linux/delay.h>
 #include <linux/cs5535.h>
 
+#include <asm/msr.h>
 #include "lxfb.h"
 
 /* TODO