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:
6681712
)
netpoll: use DEFINE_STATIC_SRCU() to define netpoll_srcu
author
Lai Jiangshan
<
[email protected]
>
Fri, 15 Mar 2013 06:50:52 +0000
(06:50 +0000)
committer
David S. Miller
<
[email protected]
>
Sun, 17 Mar 2013 16:42:43 +0000
(12:42 -0400)
DEFINE_STATIC_SRCU() defines srcu struct and do init at build time.
Signed-off-by: Lai Jiangshan <
[email protected]
>
Signed-off-by: David S. Miller <
[email protected]
>
net/core/netpoll.c
patch
|
blob
|
history
diff --git
a/net/core/netpoll.c
b/net/core/netpoll.c
index fa32899006a275e475e8b2b43c88fbfb72efd5dc..a3a17aed3639f03c3f504c1952b71488afa0064c 100644
(file)
--- a/
net/core/netpoll.c
+++ b/
net/core/netpoll.c
@@
-47,7
+47,7
@@
static struct sk_buff_head skb_pool;
static atomic_t trapped;
-
static struct srcu_struct netpoll_srcu
;
+
DEFINE_STATIC_SRCU(netpoll_srcu)
;
#define USEC_PER_POLL 50
#define NETPOLL_RX_ENABLED 1
@@
-1212,7
+1212,6
@@
EXPORT_SYMBOL(netpoll_setup);
static int __init netpoll_init(void)
{
skb_queue_head_init(&skb_pool);
- init_srcu_struct(&netpoll_srcu);
return 0;
}
core_initcall(netpoll_init);