diff options
author | Stephen Hemminger <shemminger@osdl.org> | 2006-03-21 01:56:38 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2006-03-21 01:56:38 -0500 |
commit | a95fcacdc33fa12836c306deb085ef3e68bca15a (patch) | |
tree | 5fa7e0c410772d9a112062f24ded2bc72c76a895 /net | |
parent | e3efe08e9a2c24232711dc573bf2decd2d93e335 (diff) |
[BRIDGE]: use setup_timer
Use the now standard setup_timer function.
Signed-off-by: Stephen Hemminger <shemminger@osdl.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net')
-rw-r--r-- | net/bridge/br_stp_timer.c | 23 |
1 files changed, 7 insertions, 16 deletions
diff --git a/net/bridge/br_stp_timer.c b/net/bridge/br_stp_timer.c index 75a5f6fbfa53..d0fcde82c6fc 100644 --- a/net/bridge/br_stp_timer.c +++ b/net/bridge/br_stp_timer.c | |||
@@ -144,39 +144,30 @@ static void br_hold_timer_expired(unsigned long arg) | |||
144 | spin_unlock(&p->br->lock); | 144 | spin_unlock(&p->br->lock); |
145 | } | 145 | } |
146 | 146 | ||
147 | static inline void br_timer_init(struct timer_list *timer, | ||
148 | void (*_function)(unsigned long), | ||
149 | unsigned long _data) | ||
150 | { | ||
151 | init_timer(timer); | ||
152 | timer->function = _function; | ||
153 | timer->data = _data; | ||
154 | } | ||
155 | |||
156 | void br_stp_timer_init(struct net_bridge *br) | 147 | void br_stp_timer_init(struct net_bridge *br) |
157 | { | 148 | { |
158 | br_timer_init(&br->hello_timer, br_hello_timer_expired, | 149 | setup_timer(&br->hello_timer, br_hello_timer_expired, |
159 | (unsigned long) br); | 150 | (unsigned long) br); |
160 | 151 | ||
161 | br_timer_init(&br->tcn_timer, br_tcn_timer_expired, | 152 | setup_timer(&br->tcn_timer, br_tcn_timer_expired, |
162 | (unsigned long) br); | 153 | (unsigned long) br); |
163 | 154 | ||
164 | br_timer_init(&br->topology_change_timer, | 155 | setup_timer(&br->topology_change_timer, |
165 | br_topology_change_timer_expired, | 156 | br_topology_change_timer_expired, |
166 | (unsigned long) br); | 157 | (unsigned long) br); |
167 | 158 | ||
168 | br_timer_init(&br->gc_timer, br_fdb_cleanup, (unsigned long) br); | 159 | setup_timer(&br->gc_timer, br_fdb_cleanup, (unsigned long) br); |
169 | } | 160 | } |
170 | 161 | ||
171 | void br_stp_port_timer_init(struct net_bridge_port *p) | 162 | void br_stp_port_timer_init(struct net_bridge_port *p) |
172 | { | 163 | { |
173 | br_timer_init(&p->message_age_timer, br_message_age_timer_expired, | 164 | setup_timer(&p->message_age_timer, br_message_age_timer_expired, |
174 | (unsigned long) p); | 165 | (unsigned long) p); |
175 | 166 | ||
176 | br_timer_init(&p->forward_delay_timer, br_forward_delay_timer_expired, | 167 | setup_timer(&p->forward_delay_timer, br_forward_delay_timer_expired, |
177 | (unsigned long) p); | 168 | (unsigned long) p); |
178 | 169 | ||
179 | br_timer_init(&p->hold_timer, br_hold_timer_expired, | 170 | setup_timer(&p->hold_timer, br_hold_timer_expired, |
180 | (unsigned long) p); | 171 | (unsigned long) p); |
181 | } | 172 | } |
182 | 173 | ||