summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorAhmad Fatoum <a.fatoum@pengutronix.de>2022-01-03 12:58:22 +0100
committerSascha Hauer <s.hauer@pengutronix.de>2022-01-05 08:56:10 +0100
commitbec7cde8fb6f027d82cd4d27dbae445e6e59af2d (patch)
tree3e0416f35f782f507b438af1ff89b23b88942e0d /include
parentd31ffc5b2da4c836df5595d18b1f68598d97eeb4 (diff)
downloadbarebox-bec7cde8fb6f027d82cd4d27dbae445e6e59af2d.tar.gz
barebox-bec7cde8fb6f027d82cd4d27dbae445e6e59af2d.tar.xz
include: spinlock.h: define dummy for DEFINE_SPINLOCK
This allows easier porting of code that uses spinlocks. Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de> Link: https://lore.barebox.org/20220103115824.1725086-3-a.fatoum@pengutronix.de Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'include')
-rw-r--r--include/linux/spinlock.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/spinlock.h b/include/linux/spinlock.h
index b32114f4f0..7d011785ed 100644
--- a/include/linux/spinlock.h
+++ b/include/linux/spinlock.h
@@ -8,4 +8,6 @@ typedef int spinlock_t;
#define spin_lock_irqsave(lock, flags) do { flags = 0; } while (0)
#define spin_unlock_irqrestore(lock, flags) do { flags = flags; } while (0)
+#define DEFINE_SPINLOCK(lock) spinlock_t lock
+
#endif /* __LINUX_SPINLOCK_H */