x86/cpu: Remove redundant extern x86_read_arch_cap_msr()
Subsystems (2)
PATCH 1/1 x86/cpu: Remove redundant extern x86_read_arch_cap_msr()
x86_read_arch_cap_msr() has now moved to arch/x86/include/asm/cpu.h. Kill the redundant one in arch/x86/kernel/cpu.h
Signed-off-by Ashok Raj <[email protected]>
--- arch/x86/kernel/cpu/cpu.h | 2 -- arch/x86/kernel/cpu/bugs.c | 1 + arch/x86/kernel/cpu/tsx.c | 1 + 3 files changed, 2 insertions(+), 2 deletions(-)
arch/x86/kernel/cpu/cpu.h +0 -2
@@ -82,6 +82,4 @@ unsigned int aperfmperf_get_khz(int cpu);extern void x86_spec_ctrl_setup_ap (void );extern void update_srbds_msr (void ); -extern u64 x86_read_arch_cap_msr (void ); -#endif /* ARCH_X86_CPU_H */
arch/x86/kernel/cpu/bugs.c +1 -0
@@ -33,6 +33,7 @@#include <asm/e820/api.h> #include <asm/hypervisor.h> #include <asm/tlbflush.h> +#include <asm/cpu.h> #include "cpu.h"
arch/x86/kernel/cpu/tsx.c +1 -0
@@ -11,6 +11,7 @@#include <linux/cpufeature.h> #include <asm/cmdline.h> +#include <asm/cpu.h> #include "cpu.h"
Signature · 1 line
2.34.1
Quoted 38 lines · Ashok Raj
x86_read_arch_cap_msr()has now moved toarch/x86/include/asm/cpu.h. Kill the redundant one inarch/x86/kernel/cpu.hSigned-off-by Ashok Raj <[email protected]>--- arch/x86/kernel/cpu/cpu.h | 2 -- arch/x86/kernel/cpu/bugs.c | 1 + arch/x86/kernel/cpu/tsx.c | 1 + 3 files changed, 2 insertions(+), 2 deletions(-)arch/x86/kernel/cpu/cpu.h +0
-2@@ -82,6 +82,4 @@ unsigned int aperfmperf_get_khz(int cpu);extern void x86_spec_ctrl_setup_ap (void );extern void update_srbds_msr (void ); -extern u64 x86_read_arch_cap_msr (void ); -#endif /* ARCH_X86_CPU_H */ arch/x86/kernel/cpu/bugs.c +1
-0@@ -33,6 +33,7 @@#include <asm/e820/api.h> #include <asm/hypervisor.h> #include <asm/tlbflush.h> +#include <asm/cpu.h> #include "cpu.h" arch/x86/kernel/cpu/tsx.c +0
-0
arch/x86/kernel/cpu/tsx.c line 17
Quoted 7 lines
arch/x86/kernel/cpu/tsx.c +1
-0@@ -11,6 +11,7 @@#include <linux/cpufeature.h> #include <asm/cmdline.h> +#include <asm/cpu.h> #include "cpu.h"
Reviewed-by Daniel Sneddon <[email protected]>
The following commit has been merged into the x86/cpu branch of tip:
The following commit has been merged into the x86/cpu branch of tip:
Commit-ID: bb5525a50601f8be7d0ffb04740e1714506e60c4 Gitweb: https://git.kernel.org/tip/bb5525a50601f8be7d0ffb04740e1714506e60c4 Author: Ashok Raj <[email protected]> AuthorDate: Mon, 28 Nov 2022 09:24:51 -08:00 Committer: Ingo Molnar <[email protected]> CommitterDate: Tue, 10 Jan 2023 12:40:24 +01:00
x86/cpu: Remove redundant extern x86_read_arch_cap_msr()
The prototype for the x86_read_arch_cap_msr() function has moved to arch/x86/include/asm/cpu.h - kill the redundant definition in arch/x86/kernel/cpu.h and include the header.
Signed-off-by Ashok Raj <[email protected]>
Signed-off-by Ingo Molnar <[email protected]>
Reviewed-by Daniel Sneddon <[email protected]>
--- arch/x86/kernel/cpu/bugs.c | 1 + arch/x86/kernel/cpu/cpu.h | 2 -- arch/x86/kernel/cpu/tsx.c | 1 + 3 files changed, 2 insertions(+), 2 deletions(-)
arch/x86/kernel/cpu/bugs.c +1 -0
@@ -33,6 +33,7 @@#include <asm/e820/api.h> #include <asm/hypervisor.h> #include <asm/tlbflush.h> +#include <asm/cpu.h> #include "cpu.h"
arch/x86/kernel/cpu/cpu.h +0 -2
@@ -83,6 +83,4 @@ unsigned int aperfmperf_get_khz(int cpu);extern void x86_spec_ctrl_setup_ap (void );extern void update_srbds_msr (void ); -extern u64 x86_read_arch_cap_msr (void ); -#endif /* ARCH_X86_CPU_H */
arch/x86/kernel/cpu/tsx.c +1 -0
@@ -11,6 +11,7 @@#include <linux/cpufeature.h> #include <asm/cmdline.h> +#include <asm/cpu.h> #include "cpu.h"