diff options
Diffstat (limited to 'recipes-kernel/linux/linux-bsc913x/bsc9132qds/0002-take-back-DECLARE_MUTEX-for-linx.patch')
-rw-r--r-- | recipes-kernel/linux/linux-bsc913x/bsc9132qds/0002-take-back-DECLARE_MUTEX-for-linx.patch | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/recipes-kernel/linux/linux-bsc913x/bsc9132qds/0002-take-back-DECLARE_MUTEX-for-linx.patch b/recipes-kernel/linux/linux-bsc913x/bsc9132qds/0002-take-back-DECLARE_MUTEX-for-linx.patch new file mode 100644 index 0000000..a648a81 --- /dev/null +++ b/recipes-kernel/linux/linux-bsc913x/bsc9132qds/0002-take-back-DECLARE_MUTEX-for-linx.patch | |||
@@ -0,0 +1,26 @@ | |||
1 | From: Jerry Pei <jeei@sestofb01.enea.se> | ||
2 | Date: Thu, 22 Dec 2011 03:55:03 +0100 | ||
3 | Subject: [PATCH] take back DECLARE_MUTEX for linx | ||
4 | |||
5 | Signed-off-by: Jerry Pei <jeei@sestofb01.enea.se> | ||
6 | --- | ||
7 | include/linux/semaphore.h | 3 +++ | ||
8 | 1 files changed, 3 insertions(+), 0 deletions(-) | ||
9 | |||
10 | diff --git a/include/linux/semaphore.h b/include/linux/semaphore.h | ||
11 | index 66d2591..8b75bb6 100644 | ||
12 | --- a/include/linux/semaphore.h | ||
13 | +++ b/include/linux/semaphore.h | ||
14 | @@ -29,6 +29,9 @@ struct semaphore { | ||
15 | #define DEFINE_SEMAPHORE(name, val) \ | ||
16 | struct semaphore name = __SEMAPHORE_INITIALIZER(name, val) | ||
17 | |||
18 | +#define DECLARE_MUTEX(name) \ | ||
19 | + struct semaphore name = __SEMAPHORE_INITIALIZER(name, 1) | ||
20 | + | ||
21 | static inline void sema_init(struct semaphore *sem, int val) | ||
22 | { | ||
23 | static struct lock_class_key __key; | ||
24 | -- | ||
25 | 1.7.5.4 | ||
26 | |||