mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2025-03-04 07:03:12 +07:00

LOCK_PREFIX is replaced by nops on UP systems, so it has to be a special macro. Previously this was only possible from C. Allow it for pure assembly files too. Similar to earlier x86-64 patch. Signed-off-by: Andi Kleen <ak@suse.de>
15 lines
176 B
OpenEdge ABL
15 lines
176 B
OpenEdge ABL
#include <linux/config.h>
|
|
|
|
#ifdef CONFIG_SMP
|
|
.macro LOCK_PREFIX
|
|
1: lock
|
|
.section .smp_locks,"a"
|
|
.align 4
|
|
.long 1b
|
|
.previous
|
|
.endm
|
|
#else
|
|
.macro LOCK_PREFIX
|
|
.endm
|
|
#endif
|