locking/refcounts: Include fewer headers in <linux/refcount.h>
[linux/fpc-iii.git] / arch / x86 / include / asm / bugs.h
blob542509b53e0f5f1f0d6b8d65fc5b82dd5305fb32
1 /* SPDX-License-Identifier: GPL-2.0 */
2 #ifndef _ASM_X86_BUGS_H
3 #define _ASM_X86_BUGS_H
5 #include <asm/processor.h>
7 extern void check_bugs(void);
9 #if defined(CONFIG_CPU_SUP_INTEL)
10 void check_mpx_erratum(struct cpuinfo_x86 *c);
11 #else
12 static inline void check_mpx_erratum(struct cpuinfo_x86 *c) {}
13 #endif
15 #if defined(CONFIG_CPU_SUP_INTEL) && defined(CONFIG_X86_32)
16 int ppro_with_ram_bug(void);
17 #else
18 static inline int ppro_with_ram_bug(void) { return 0; }
19 #endif
21 #endif /* _ASM_X86_BUGS_H */