projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
462e1e1
)
lglock: make the per_cpu locks static
author
Lai Jiangshan
<
[email protected]
>
Tue, 9 Oct 2012 21:49:51 +0000
(14:49 -0700)
committer
Al Viro
<
[email protected]
>
Wed, 10 Oct 2012 05:15:44 +0000
(
01:15
-0400)
The per_cpu locks are not used outside the file which contains the
DEFINE_LGLOCK(), so we can make these symbols static.
Signed-off-by: Lai Jiangshan <
[email protected]
>
Cc: Alexander Viro <
[email protected]
>
Cc: Rusty Russell <
[email protected]
>
Cc: Andi Kleen <
[email protected]
>
Signed-off-by: Andrew Morton <
[email protected]
>
Signed-off-by: Al Viro <
[email protected]
>
include/linux/lglock.h
patch
|
blob
|
history
diff --git
a/include/linux/lglock.h
b/include/linux/lglock.h
index 45eff71de887462f87a536a7bcac2ff87008d518..8f974517c48a2171e301bf6672bb0ef8b6c0ad3d 100644
(file)
--- a/
include/linux/lglock.h
+++ b/
include/linux/lglock.h
@@
-49,7
+49,7
@@
struct lglock {
};
#define DEFINE_LGLOCK(name) \
-
DEFINE_PER_CPU(arch_spinlock_t, name ## _lock)
\
+
static DEFINE_PER_CPU(arch_spinlock_t, name ## _lock)
\
= __ARCH_SPIN_LOCK_UNLOCKED; \
struct lglock name = { .lock = &name ## _lock }