diff options
Diffstat (limited to 'arch/x86/include/asm/processor.h')
-rw-r--r-- | arch/x86/include/asm/processor.h | 5 |
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 | ||
904 | extern u16 amd_get_nb_id(int cpu); | 905 | extern u16 amd_get_nb_id(int cpu); |
905 | extern u32 amd_get_nodes_per_socket(void); | 906 | extern u32 amd_get_nodes_per_socket(void); |
907 | #else | ||
908 | static inline u16 amd_get_nb_id(int cpu) { return 0; } | ||
909 | static inline u32 amd_get_nodes_per_socket(void) { return 0; } | ||
910 | #endif | ||
906 | 911 | ||
907 | static inline uint32_t hypervisor_cpuid_base(const char *sig, uint32_t leaves) | 912 | static inline uint32_t hypervisor_cpuid_base(const char *sig, uint32_t leaves) |
908 | { | 913 | { |