projects
/
GitHub
/
mt8127
/
android_kernel_alcatel_ttab.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
888c31f
)
parisc: drop unnecessary cast in __ldcw_align() macro
author
Helge Deller
<deller@gmx.de>
Tue, 2 Feb 2010 19:06:23 +0000
(19:06 +0000)
committer
Kyle McMartin
<kyle@redhat.com>
Sat, 6 Mar 2010 22:54:10 +0000
(22:54 +0000)
__ldcw_align() can directly access the slock member of struct arch_spinlock_t
instead of using an ugly cast.
Signed-off-by: Helge Deller <deller@gmx.de>
Signed-off-by: Kyle McMartin <kyle@mcmartin.ca>
arch/parisc/include/asm/system.h
patch
|
blob
|
blame
|
history
diff --git
a/arch/parisc/include/asm/system.h
b/arch/parisc/include/asm/system.h
index d91357bca5b4cc18a3c143f948f24c7afef379cc..4653c77bf9d13398c6dd6777786a20c3a821c2dd 100644
(file)
--- a/
arch/parisc/include/asm/system.h
+++ b/
arch/parisc/include/asm/system.h
@@
-160,7
+160,7
@@
static inline void set_eiem(unsigned long val)
ldcd). */
#define __PA_LDCW_ALIGNMENT 4
-#define __ldcw_align(a) (
(volatile unsigned int *)a
)
+#define __ldcw_align(a) (
&(a)->slock
)
#define __LDCW "ldcw,co"
#endif /*!CONFIG_PA20*/