coreboot-kgpe-d16/src/include/smp/spinlock.h

18 lines
411 B
C
Raw Normal View History

#ifndef SMP_SPINLOCK_H
#define SMP_SPINLOCK_H
#if CONFIG_SMP
#include <arch/smp/spinlock.h>
#else /* !CONFIG_SMP */
#define DECLARE_SPIN_LOCK(x)
#define barrier() do {} while(0)
#define spin_is_locked(lock) 0
#define spin_unlock_wait(lock) do {} while(0)
#define spin_lock(lock) do {} while(0)
#define spin_unlock(lock) do {} while(0)
#define cpu_relax() do {} while(0)
#endif
#endif /* SMP_SPINLOCK_H */