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:
0329b7d
)
drop_monitor: use setup_timer
author
Geliang Tang
<
[email protected]
>
Sat, 11 Mar 2017 00:46:59 +0000
(08:46 +0800)
committer
David S. Miller
<
[email protected]
>
Mon, 13 Mar 2017 06:47:16 +0000
(23:47 -0700)
Use setup_timer() instead of init_timer() to simplify the code.
Signed-off-by: Geliang Tang <
[email protected]
>
Signed-off-by: David S. Miller <
[email protected]
>
net/core/drop_monitor.c
patch
|
blob
|
history
diff --git
a/net/core/drop_monitor.c
b/net/core/drop_monitor.c
index fb55327dcfeabdaf3eeecc3a8d176ae215612649..70ccda233bd1f1aab18535e6d9d0419bb9a1a23b 100644
(file)
--- a/
net/core/drop_monitor.c
+++ b/
net/core/drop_monitor.c
@@
-412,9
+412,8
@@
static int __init init_net_drop_monitor(void)
for_each_possible_cpu(cpu) {
data = &per_cpu(dm_cpu_data, cpu);
INIT_WORK(&data->dm_alert_work, send_dm_alert);
- init_timer(&data->send_timer);
- data->send_timer.data = (unsigned long)data;
- data->send_timer.function = sched_send_work;
+ setup_timer(&data->send_timer, sched_send_work,
+ (unsigned long)data);
spin_lock_init(&data->lock);
reset_per_cpu_data(data);
}