aboutsummaryrefslogtreecommitdiffstats
path: root/arch/x86/include/asm/processor.h
diff options
context:
space:
mode:
Diffstat (limited to 'arch/x86/include/asm/processor.h')
-rw-r--r--arch/x86/include/asm/processor.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/arch/x86/include/asm/processor.h b/arch/x86/include/asm/processor.h
index 3cada998a402..71f6fba95aa6 100644
--- a/arch/x86/include/asm/processor.h
+++ b/arch/x86/include/asm/processor.h
@@ -901,8 +901,13 @@ static inline int mpx_disable_management(void)
901} 901}
902#endif /* CONFIG_X86_INTEL_MPX */ 902#endif /* CONFIG_X86_INTEL_MPX */
903 903
904#ifdef CONFIG_CPU_SUP_AMD
904extern u16 amd_get_nb_id(int cpu); 905extern u16 amd_get_nb_id(int cpu);
905extern u32 amd_get_nodes_per_socket(void); 906extern u32 amd_get_nodes_per_socket(void);
907#else
908static inline u16 amd_get_nb_id(int cpu) { return 0; }
909static inline u32 amd_get_nodes_per_socket(void) { return 0; }
910#endif
906 911
907static inline uint32_t hypervisor_cpuid_base(const char *sig, uint32_t leaves) 912static inline uint32_t hypervisor_cpuid_base(const char *sig, uint32_t leaves)
908{ 913{