]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
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)
commitefef7f184f2eaf29a1ca676712d0e6e851cd0191
tree0f98db333b98c2c60367ef4344673ff803abfc17
parentbdfda83a6b5988f1ac62cd0eaceb6c3b44dc2a31
x86/msr: Add explicit includes of <asm/msr.h>

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