git.openpandora.org
/
sgx.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d8d6d83
)
OMAP3 SGX TI 4.00.00.01 2.6.37-rc1 use semaphore over mutex
author
Robert Nelson
<robertcnelson@gmail.com>
Mon, 1 Nov 2010 15:23:52 +0000
(10:23 -0500)
committer
Grazvydas Ignotas
<notasas@gmail.com>
Sun, 25 Mar 2012 00:43:47 +0000
(
02:43
+0200)
Signed-off-by: Robert Nelson <robertcnelson@gmail.com>
Changes by Koen:
Protect it with #if LINUX_VERSION_CODE => KERNEL_VERSION(2,6,36)
services4/srvkm/common/resman.c
patch
|
blob
|
history
diff --git
a/services4/srvkm/common/resman.c
b/services4/srvkm/common/resman.c
index
d713c3c
..
cf3c207
100644
(file)
--- a/
services4/srvkm/common/resman.c
+++ b/
services4/srvkm/common/resman.c
@@
-46,7
+46,11
@@
#include <asm/semaphore.h>
#endif
+#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,36)
+static DEFINE_SEMAPHORE(lock);
+#else
static DECLARE_MUTEX(lock);
+#endif
#define ACQUIRE_SYNC_OBJ do { \
if (in_interrupt()) { \