Eric Biederman | 8ca8d76 | 2003-04-22 19:02:15 +0000 | [diff] [blame] | 1 | #ifndef SMP_SPINLOCK_H |
| 2 | #define SMP_SPINLOCK_H |
| 3 | |
Patrick Georgi | e166782 | 2012-05-05 15:29:32 +0200 | [diff] [blame^] | 4 | #if CONFIG_SMP |
Eric Biederman | 8ca8d76 | 2003-04-22 19:02:15 +0000 | [diff] [blame] | 5 | #include <arch/smp/spinlock.h> |
Eric Biederman | 2c018fb | 2003-07-21 20:13:45 +0000 | [diff] [blame] | 6 | #else /* !CONFIG_SMP */ |
Eric Biederman | 8ca8d76 | 2003-04-22 19:02:15 +0000 | [diff] [blame] | 7 | |
Myles Watson | 2e67273 | 2009-11-12 16:38:03 +0000 | [diff] [blame] | 8 | #define DECLARE_SPIN_LOCK(x) |
Eric Biederman | 8ca8d76 | 2003-04-22 19:02:15 +0000 | [diff] [blame] | 9 | #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 Schildt | bc6281a | 2005-10-25 21:28:41 +0000 | [diff] [blame] | 14 | #define cpu_relax() do {} while(0) |
Eric Biederman | 8ca8d76 | 2003-04-22 19:02:15 +0000 | [diff] [blame] | 15 | #endif |
| 16 | |
| 17 | #endif /* SMP_SPINLOCK_H */ |