diff options
author | Matthew Wilcox <mawilcox@microsoft.com> | 2016-12-16 14:53:45 -0500 |
---|---|---|
committer | Matthew Wilcox <mawilcox@microsoft.com> | 2017-02-13 16:09:41 -0500 |
commit | 12ea65390bd5a46f8a70f068eb0d48922576a781 (patch) | |
tree | 014cc8039fa7318fa2eb6fa8392d26c8897fb14f /tools/include/linux/spinlock.h | |
parent | a3c7890790e742074bc9e5640b0fcf9c61a771a2 (diff) |
radix tree test suite: Remove types.h
Move the pieces we still need to tools/include and update a few implicit
includes.
Signed-off-by: Matthew Wilcox <mawilcox@microsoft.com>
Diffstat (limited to 'tools/include/linux/spinlock.h')
-rw-r--r-- | tools/include/linux/spinlock.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/tools/include/linux/spinlock.h b/tools/include/linux/spinlock.h new file mode 100644 index 000000000000..58397dcb19d6 --- /dev/null +++ b/tools/include/linux/spinlock.h @@ -0,0 +1,5 @@ +#define spinlock_t pthread_mutex_t +#define DEFINE_SPINLOCK(x) pthread_mutex_t x = PTHREAD_MUTEX_INITIALIZER; + +#define spin_lock_irqsave(x, f) (void)f, pthread_mutex_lock(x) +#define spin_unlock_irqrestore(x, f) (void)f, pthread_mutex_unlock(x) |