#if defined(CONFIG_SMP)
//spinlock_types.h (D:\linux-2.6.36.2\arch\arm\include\asm)
# include <asm/spinlock_types.h>
typedef struct {
volatile unsigned int lock;
} arch_spinlock_t;
#else
# include <linux/spinlock_types_up.h>
#ifdef CONFIG_DEBUG_SPINLOCK
typedef struct {
volatile unsigned int slock;
} arch_spinlock_t;
#define __ARCH_SPIN_LOCK_UNLOCKED { 1 }
#else
typedef struct { } arch_spinlock_t;
#define __ARCH_SPIN_LOCK_UNLOCKED { }
#endif
#endif
沒有留言:
張貼留言