Greg Kroah-Hartman | b244131 | 2017-11-01 15:07:57 +0100 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0 */ |
H. Peter Anvin | 1965aae | 2008-10-22 22:26:29 -0700 | [diff] [blame] | 2 | #ifndef _ASM_X86_BUGS_H |
| 3 | #define _ASM_X86_BUGS_H |
Thomas Gleixner | 003a46c | 2007-10-15 13:57:47 +0200 | [diff] [blame] | 4 | |
Dave Hansen | 0f6ff2b | 2016-05-12 15:04:00 -0700 | [diff] [blame] | 5 | #include <asm/processor.h> |
| 6 | |
Ingo Molnar | 8550eb9 | 2008-01-30 13:34:10 +0100 | [diff] [blame] | 7 | extern void check_bugs(void); |
Thomas Petazzoni | 8d02c21 | 2008-08-05 11:45:19 +0200 | [diff] [blame] | 8 | |
Dave Hansen | 0f6ff2b | 2016-05-12 15:04:00 -0700 | [diff] [blame] | 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 |
| 14 | |
Yinghai Lu | 879d792 | 2008-09-09 16:40:37 -0700 | [diff] [blame] | 15 | #if defined(CONFIG_CPU_SUP_INTEL) && defined(CONFIG_X86_32) |
Harvey Harrison | 73bdb73 | 2008-02-04 16:48:04 +0100 | [diff] [blame] | 16 | int ppro_with_ram_bug(void); |
Thomas Petazzoni | 8d02c21 | 2008-08-05 11:45:19 +0200 | [diff] [blame] | 17 | #else |
| 18 | static inline int ppro_with_ram_bug(void) { return 0; } |
| 19 | #endif |
Thomas Gleixner | 003a46c | 2007-10-15 13:57:47 +0200 | [diff] [blame] | 20 | |
Thomas Gleixner | 9c92374 | 2019-07-22 20:47:17 +0200 | [diff] [blame] | 21 | extern void cpu_bugs_smt_update(void); |
| 22 | |
H. Peter Anvin | 1965aae | 2008-10-22 22:26:29 -0700 | [diff] [blame] | 23 | #endif /* _ASM_X86_BUGS_H */ |