aboutsummaryrefslogtreecommitdiffstats
path: root/arch/x86/include/asm/processor.h
diff options
context:
space:
mode:
authorFenghua Yu <fenghua.yu@intel.com>2012-12-21 02:44:23 -0500
committerH. Peter Anvin <hpa@linux.intel.com>2013-01-31 16:18:58 -0500
commitd288e1cf8e62f3e4034f1f021f047009c4ac0b3c (patch)
tree2f0a2076fabb4435c1b5830f845d33f61c21c659 /arch/x86/include/asm/processor.h
parent9cd4d78e21cfdc709b1af516214ec4f69ee0e6bd (diff)
x86/common.c: Make have_cpuid_p() a global function
Remove static declaration in have_cpuid_p() to make it a global function. The function will be called in early loading microcode. Signed-off-by: Fenghua Yu <fenghua.yu@intel.com> Link: http://lkml.kernel.org/r/1356075872-3054-4-git-send-email-fenghua.yu@intel.com Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
Diffstat (limited to 'arch/x86/include/asm/processor.h')
-rw-r--r--arch/x86/include/asm/processor.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/arch/x86/include/asm/processor.h b/arch/x86/include/asm/processor.h
index bdee8bd318ea..3cdf4aa4d23f 100644
--- a/arch/x86/include/asm/processor.h
+++ b/arch/x86/include/asm/processor.h
@@ -190,6 +190,14 @@ extern void init_amd_cacheinfo(struct cpuinfo_x86 *c);
190extern void detect_extended_topology(struct cpuinfo_x86 *c); 190extern void detect_extended_topology(struct cpuinfo_x86 *c);
191extern void detect_ht(struct cpuinfo_x86 *c); 191extern void detect_ht(struct cpuinfo_x86 *c);
192 192
193#ifdef CONFIG_X86_32
194extern int have_cpuid_p(void);
195#else
196static inline int have_cpuid_p(void)
197{
198 return 1;
199}
200#endif
193static inline void native_cpuid(unsigned int *eax, unsigned int *ebx, 201static inline void native_cpuid(unsigned int *eax, unsigned int *ebx,
194 unsigned int *ecx, unsigned int *edx) 202 unsigned int *ecx, unsigned int *edx)
195{ 203{