From ee247fc1e93e6d37cf509a640a7d273616056f5d Mon Sep 17 00:00:00 2001 From: Emmanuel Vadot Date: Thu, 10 Nov 2022 12:50:51 +0100 Subject: [PATCH] linuxkpi: Move cpu_relax out of ifdef for x86 It's needed by drm-kmod and this allow building on arm64 and powerpc. Reported by: jhibbits Sponsored by: Beckhoff Automation GmbH & Co. KG --- sys/compat/linuxkpi/common/include/asm/processor.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sys/compat/linuxkpi/common/include/asm/processor.h b/sys/compat/linuxkpi/common/include/asm/processor.h index 45019275061..0b34031392a 100644 --- a/sys/compat/linuxkpi/common/include/asm/processor.h +++ b/sys/compat/linuxkpi/common/include/asm/processor.h @@ -38,9 +38,9 @@ struct cpuinfo_x86 { uint16_t x86_clflush_size; }; -#define cpu_relax() cpu_spinwait() - extern struct cpuinfo_x86 boot_cpu_data; #endif +#define cpu_relax() cpu_spinwait() + #endif /* _LINUXKPI_ASM_PROCESSOR_H_ */