summaryrefslogtreecommitdiffstats
path: root/recipes-kernel/linux/linux-bsc913x/bsc9131rdb/0002-take-back-DECLARE_MUTEX-for-linx.patch
diff options
context:
space:
mode:
authorAdrian Dudau <adrian.dudau@enea.com>2013-12-12 17:36:38 +0100
committerAdrian Dudau <adrian.dudau@enea.com>2013-12-12 17:36:38 +0100
commit2a7348129a42f21095fcd62e47a035f78d254130 (patch)
tree544dc8019a8f8cb684ace8674193605e607f9964 /recipes-kernel/linux/linux-bsc913x/bsc9131rdb/0002-take-back-DECLARE_MUTEX-for-linx.patch
downloadmeta-enea-2a7348129a42f21095fcd62e47a035f78d254130.tar.gz
initial commit of Enea Linux 3.1HEADmaster
Migrated from the internal git server on the dora-enea branch Signed-off-by: Adrian Dudau <adrian.dudau@enea.com>
Diffstat (limited to 'recipes-kernel/linux/linux-bsc913x/bsc9131rdb/0002-take-back-DECLARE_MUTEX-for-linx.patch')
-rw-r--r--recipes-kernel/linux/linux-bsc913x/bsc9131rdb/0002-take-back-DECLARE_MUTEX-for-linx.patch26
1 files changed, 26 insertions, 0 deletions
diff --git a/recipes-kernel/linux/linux-bsc913x/bsc9131rdb/0002-take-back-DECLARE_MUTEX-for-linx.patch b/recipes-kernel/linux/linux-bsc913x/bsc9131rdb/0002-take-back-DECLARE_MUTEX-for-linx.patch
new file mode 100644
index 0000000..a648a81
--- /dev/null
+++ b/recipes-kernel/linux/linux-bsc913x/bsc9131rdb/0002-take-back-DECLARE_MUTEX-for-linx.patch
@@ -0,0 +1,26 @@
1From: Jerry Pei <jeei@sestofb01.enea.se>
2Date: Thu, 22 Dec 2011 03:55:03 +0100
3Subject: [PATCH] take back DECLARE_MUTEX for linx
4
5Signed-off-by: Jerry Pei <jeei@sestofb01.enea.se>
6---
7 include/linux/semaphore.h | 3 +++
8 1 files changed, 3 insertions(+), 0 deletions(-)
9
10diff --git a/include/linux/semaphore.h b/include/linux/semaphore.h
11index 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--
251.7.5.4
26