blob: 87298b1c486194e6c7480b112ac498e2849dccee [file] [log] [blame]
Eric Biederman8ca8d762003-04-22 19:02:15 +00001#ifndef SMP_SPINLOCK_H
2#define SMP_SPINLOCK_H
3
Patrick Georgie1667822012-05-05 15:29:32 +02004#if CONFIG_SMP
Eric Biederman8ca8d762003-04-22 19:02:15 +00005#include <arch/smp/spinlock.h>
Eric Biederman2c018fb2003-07-21 20:13:45 +00006#else /* !CONFIG_SMP */
Eric Biederman8ca8d762003-04-22 19:02:15 +00007
Myles Watson2e672732009-11-12 16:38:03 +00008#define DECLARE_SPIN_LOCK(x)
Eric Biederman8ca8d762003-04-22 19:02:15 +00009#define barrier() do {} while(0)
10#define spin_is_locked(lock) 0
11#define spin_unlock_wait(lock) do {} while(0)
12#define spin_lock(lock) do {} while(0)
13#define spin_unlock(lock) do {} while(0)
Jason Schildtbc6281a2005-10-25 21:28:41 +000014#define cpu_relax() do {} while(0)
Eric Biederman8ca8d762003-04-22 19:02:15 +000015#endif
16
17#endif /* SMP_SPINLOCK_H */