linux/include/linux/spinlock_types_raw.h

#ifndef __LINUX_SPINLOCK_TYPES_RAW_H
#define __LINUX_SPINLOCK_TYPES_RAW_H

#include <linux/types.h>

#if defined(CONFIG_SMP)
# include <asm/spinlock_types.h>
#else
# include <linux/spinlock_types_up.h>
#endif

#include <linux/lockdep_types.h>

raw_spinlock_t;

#define SPINLOCK_MAGIC

#define SPINLOCK_OWNER_INIT

#ifdef CONFIG_DEBUG_LOCK_ALLOC
#define RAW_SPIN_DEP_MAP_INIT(lockname)
#define SPIN_DEP_MAP_INIT(lockname)

#define LOCAL_SPIN_DEP_MAP_INIT(lockname)
#else
#define RAW_SPIN_DEP_MAP_INIT
#define SPIN_DEP_MAP_INIT
#define LOCAL_SPIN_DEP_MAP_INIT
#endif

#ifdef CONFIG_DEBUG_SPINLOCK
#define SPIN_DEBUG_INIT(lockname)
#else
#define SPIN_DEBUG_INIT
#endif

#define __RAW_SPIN_LOCK_INITIALIZER(lockname)

#define __RAW_SPIN_LOCK_UNLOCKED(lockname)

#define DEFINE_RAW_SPINLOCK(x)

#endif /* __LINUX_SPINLOCK_TYPES_RAW_H */