| From 41a7eec23e5f35a686344b0852bc3eb8f36ce7e8 Mon Sep 17 00:00:00 2001 |
| From: Thomas Gleixner <tglx@linutronix.de> |
| Date: Wed, 29 Jul 2009 21:38:32 +0200 |
| Subject: [PATCH] locks: provide __DEFINE_SPINLOCK needed by percpu_locked |
| |
| commit 6cffa489da202a02a4ca453d8086b62f51833ce7 in tip. |
| |
| [PG: update with what is in 33rt merge commit 5f854cfc0246] |
| |
| Signed-off-by: Thomas Gleixner <tglx@linutronix.de> |
| Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com> |
| |
| diff --git a/include/linux/spinlock_types.h b/include/linux/spinlock_types.h |
| index 851b778..aadd590 100644 |
| --- a/include/linux/spinlock_types.h |
| +++ b/include/linux/spinlock_types.h |
| @@ -90,6 +90,7 @@ typedef struct spinlock { |
| #define SPIN_LOCK_UNLOCKED __SPIN_LOCK_UNLOCKED(old_style_spin_init) |
| |
| #define DEFINE_SPINLOCK(x) spinlock_t x = __SPIN_LOCK_UNLOCKED(x) |
| +#define __DEFINE_SPINLOCK(x) DEFINE_SPINLOCK(x) |
| |
| #include <linux/rwlock_types.h> |
| |
| -- |
| 1.7.1.1 |
| |