/trunk/kernel/generic/include/synch/spinlock.h |
---|
42,12 → 42,12 |
#include <debug.h> |
#ifdef CONFIG_SMP |
struct spinlock { |
typedef struct { |
#ifdef CONFIG_DEBUG_SPINLOCK |
char *name; |
#endif |
atomic_t val; |
}; |
} spinlock_t; |
/* |
* SPINLOCK_DECLARE is to be used for dynamically allocated spinlocks, |
103,6 → 103,8 |
#else |
typedef void spinlock_t; |
/* On UP systems, spinlocks are effectively left out. */ |
#define SPINLOCK_DECLARE(name) |
#define SPINLOCK_INITIALIZE(name) |