xref: /aosp_15_r20/external/coreboot/src/include/smp/spinlock.h (revision b9411a12aaaa7e1e6a6fb7c5e057f44ee179a49c)
1 /* SPDX-License-Identifier: GPL-2.0-only */
2 
3 #ifndef SMP_SPINLOCK_H
4 #define SMP_SPINLOCK_H
5 
6 #if ENV_SUPPORTS_SMP
7 #include <arch/smp/spinlock.h>
8 #else /* !CONFIG_SMP */
9 
10 #define DECLARE_SPIN_LOCK(x)
11 #define spin_is_locked(lock)	0
12 #define spin_unlock_wait(lock)	do {} while (0)
13 #define spin_lock(lock)		do {} while (0)
14 #define spin_unlock(lock)	do {} while (0)
15 #endif
16 
17 #endif /* SMP_SPINLOCK_H */
18