mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-28 11:18:45 +07:00
9c92374b63
arch_smt_update() will be used to control IPI/NMI broadcasting via the shorthand mechanism. Keeping it in the bugs file and calling the apic function from there is possible, but not really intuitive. Move it to a neutral place and invoke the bugs function from there. No functional change. Signed-off-by: Thomas Gleixner <tglx@linutronix.de> Acked-by: Peter Zijlstra (Intel) <peterz@infradead.org> Link: https://lkml.kernel.org/r/20190722105219.910317273@linutronix.de
24 lines
533 B
C
24 lines
533 B
C
/* SPDX-License-Identifier: GPL-2.0 */
|
|
#ifndef _ASM_X86_BUGS_H
|
|
#define _ASM_X86_BUGS_H
|
|
|
|
#include <asm/processor.h>
|
|
|
|
extern void check_bugs(void);
|
|
|
|
#if defined(CONFIG_CPU_SUP_INTEL)
|
|
void check_mpx_erratum(struct cpuinfo_x86 *c);
|
|
#else
|
|
static inline void check_mpx_erratum(struct cpuinfo_x86 *c) {}
|
|
#endif
|
|
|
|
#if defined(CONFIG_CPU_SUP_INTEL) && defined(CONFIG_X86_32)
|
|
int ppro_with_ram_bug(void);
|
|
#else
|
|
static inline int ppro_with_ram_bug(void) { return 0; }
|
|
#endif
|
|
|
|
extern void cpu_bugs_smt_update(void);
|
|
|
|
#endif /* _ASM_X86_BUGS_H */
|