Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
linux
Commits
1b159766
Commit
1b159766
authored
Nov 13, 2002
by
Andrew Morton
Committed by
David S. Miller
Nov 13, 2002
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[NET]: More timer init fixes.
parent
1c7b149b
Changes
7
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
11 additions
and
4 deletions
+11
-4
net/802/tr.c
net/802/tr.c
+1
-1
net/atm/mpc.c
net/atm/mpc.c
+1
-1
net/core/neighbour.c
net/core/neighbour.c
+1
-1
net/ipv6/mcast.c
net/ipv6/mcast.c
+1
-0
net/irda/af_irda.c
net/irda/af_irda.c
+1
-0
net/llc/llc_main.c
net/llc/llc_main.c
+5
-0
net/sched/sch_sfq.c
net/sched/sch_sfq.c
+1
-1
No files found.
net/802/tr.c
View file @
1b159766
...
@@ -541,10 +541,10 @@ static int rif_get_info(char *buffer,char **start, off_t offset, int length)
...
@@ -541,10 +541,10 @@ static int rif_get_info(char *buffer,char **start, off_t offset, int length)
static
int
__init
rif_init
(
void
)
static
int
__init
rif_init
(
void
)
{
{
init_timer
(
&
rif_timer
);
rif_timer
.
expires
=
RIF_TIMEOUT
;
rif_timer
.
expires
=
RIF_TIMEOUT
;
rif_timer
.
data
=
0L
;
rif_timer
.
data
=
0L
;
rif_timer
.
function
=
rif_check_expire
;
rif_timer
.
function
=
rif_check_expire
;
init_timer
(
&
rif_timer
);
add_timer
(
&
rif_timer
);
add_timer
(
&
rif_timer
);
proc_net_create
(
"tr_rif"
,
0
,
rif_get_info
);
proc_net_create
(
"tr_rif"
,
0
,
rif_get_info
);
...
...
net/atm/mpc.c
View file @
1b159766
...
@@ -104,7 +104,7 @@ extern void mpc_proc_clean(void);
...
@@ -104,7 +104,7 @@ extern void mpc_proc_clean(void);
struct
mpoa_client
*
mpcs
=
NULL
;
/* FIXME */
struct
mpoa_client
*
mpcs
=
NULL
;
/* FIXME */
static
struct
atm_mpoa_qos
*
qos_head
=
NULL
;
static
struct
atm_mpoa_qos
*
qos_head
=
NULL
;
static
struct
timer_list
mpc_timer
;
static
struct
timer_list
mpc_timer
=
TIMER_INITIALIZER
(
NULL
,
0
,
0
)
;
static
struct
mpoa_client
*
find_mpc_by_itfnum
(
int
itf
)
static
struct
mpoa_client
*
find_mpc_by_itfnum
(
int
itf
)
...
...
net/core/neighbour.c
View file @
1b159766
...
@@ -1151,8 +1151,8 @@ void neigh_table_init(struct neigh_table *tbl)
...
@@ -1151,8 +1151,8 @@ void neigh_table_init(struct neigh_table *tbl)
tasklet_init
(
&
tbl
->
gc_task
,
SMP_TIMER_NAME
(
neigh_periodic_timer
),
tasklet_init
(
&
tbl
->
gc_task
,
SMP_TIMER_NAME
(
neigh_periodic_timer
),
(
unsigned
long
)
tbl
);
(
unsigned
long
)
tbl
);
#endif
#endif
init_timer
(
&
tbl
->
gc_timer
);
tbl
->
lock
=
RW_LOCK_UNLOCKED
;
tbl
->
lock
=
RW_LOCK_UNLOCKED
;
init_timer
(
&
tbl
->
gc_timer
);
tbl
->
gc_timer
.
data
=
(
unsigned
long
)
tbl
;
tbl
->
gc_timer
.
data
=
(
unsigned
long
)
tbl
;
tbl
->
gc_timer
.
function
=
neigh_periodic_timer
;
tbl
->
gc_timer
.
function
=
neigh_periodic_timer
;
tbl
->
gc_timer
.
expires
=
now
+
tbl
->
gc_interval
+
tbl
->
gc_timer
.
expires
=
now
+
tbl
->
gc_interval
+
...
...
net/ipv6/mcast.c
View file @
1b159766
...
@@ -296,6 +296,7 @@ int ipv6_dev_mc_inc(struct net_device *dev, struct in6_addr *addr)
...
@@ -296,6 +296,7 @@ int ipv6_dev_mc_inc(struct net_device *dev, struct in6_addr *addr)
}
}
memset
(
mc
,
0
,
sizeof
(
struct
ifmcaddr6
));
memset
(
mc
,
0
,
sizeof
(
struct
ifmcaddr6
));
init_timer
(
&
mc
->
mca_timer
);
mc
->
mca_timer
.
function
=
igmp6_timer_handler
;
mc
->
mca_timer
.
function
=
igmp6_timer_handler
;
mc
->
mca_timer
.
data
=
(
unsigned
long
)
mc
;
mc
->
mca_timer
.
data
=
(
unsigned
long
)
mc
;
...
...
net/irda/af_irda.c
View file @
1b159766
...
@@ -2364,6 +2364,7 @@ static int irda_getsockopt(struct socket *sock, int level, int optname,
...
@@ -2364,6 +2364,7 @@ static int irda_getsockopt(struct socket *sock, int level, int optname,
/* Set watchdog timer to expire in <val> ms. */
/* Set watchdog timer to expire in <val> ms. */
self
->
errno
=
0
;
self
->
errno
=
0
;
init_timer
(
&
self
->
watchdog
);
self
->
watchdog
.
function
=
irda_discovery_timeout
;
self
->
watchdog
.
function
=
irda_discovery_timeout
;
self
->
watchdog
.
data
=
(
unsigned
long
)
self
;
self
->
watchdog
.
data
=
(
unsigned
long
)
self
;
self
->
watchdog
.
expires
=
jiffies
+
(
val
*
HZ
/
1000
);
self
->
watchdog
.
expires
=
jiffies
+
(
val
*
HZ
/
1000
);
...
...
net/llc/llc_main.c
View file @
1b159766
...
@@ -181,18 +181,22 @@ int llc_sk_init(struct sock* sk)
...
@@ -181,18 +181,22 @@ int llc_sk_init(struct sock* sk)
llc
->
inc_cntr
=
llc
->
dec_cntr
=
2
;
llc
->
inc_cntr
=
llc
->
dec_cntr
=
2
;
llc
->
dec_step
=
llc
->
connect_step
=
1
;
llc
->
dec_step
=
llc
->
connect_step
=
1
;
init_timer
(
&
llc
->
ack_timer
);
llc
->
ack_timer
.
expire
=
LLC_ACK_TIME
;
llc
->
ack_timer
.
expire
=
LLC_ACK_TIME
;
llc
->
ack_timer
.
timer
.
data
=
(
unsigned
long
)
sk
;
llc
->
ack_timer
.
timer
.
data
=
(
unsigned
long
)
sk
;
llc
->
ack_timer
.
timer
.
function
=
llc_conn_ack_tmr_cb
;
llc
->
ack_timer
.
timer
.
function
=
llc_conn_ack_tmr_cb
;
init_timer
(
&
llc
->
pf_cycle_timer
);
llc
->
pf_cycle_timer
.
expire
=
LLC_P_TIME
;
llc
->
pf_cycle_timer
.
expire
=
LLC_P_TIME
;
llc
->
pf_cycle_timer
.
timer
.
data
=
(
unsigned
long
)
sk
;
llc
->
pf_cycle_timer
.
timer
.
data
=
(
unsigned
long
)
sk
;
llc
->
pf_cycle_timer
.
timer
.
function
=
llc_conn_pf_cycle_tmr_cb
;
llc
->
pf_cycle_timer
.
timer
.
function
=
llc_conn_pf_cycle_tmr_cb
;
init_timer
(
&
llc
->
rej_sent_timer
);
llc
->
rej_sent_timer
.
expire
=
LLC_REJ_TIME
;
llc
->
rej_sent_timer
.
expire
=
LLC_REJ_TIME
;
llc
->
rej_sent_timer
.
timer
.
data
=
(
unsigned
long
)
sk
;
llc
->
rej_sent_timer
.
timer
.
data
=
(
unsigned
long
)
sk
;
llc
->
rej_sent_timer
.
timer
.
function
=
llc_conn_rej_tmr_cb
;
llc
->
rej_sent_timer
.
timer
.
function
=
llc_conn_rej_tmr_cb
;
init_timer
(
&
llc
->
busy_state_timer
);
llc
->
busy_state_timer
.
expire
=
LLC_BUSY_TIME
;
llc
->
busy_state_timer
.
expire
=
LLC_BUSY_TIME
;
llc
->
busy_state_timer
.
timer
.
data
=
(
unsigned
long
)
sk
;
llc
->
busy_state_timer
.
timer
.
data
=
(
unsigned
long
)
sk
;
llc
->
busy_state_timer
.
timer
.
function
=
llc_conn_busy_tmr_cb
;
llc
->
busy_state_timer
.
timer
.
function
=
llc_conn_busy_tmr_cb
;
...
@@ -552,6 +556,7 @@ static int __init llc_init(void)
...
@@ -552,6 +556,7 @@ static int __init llc_init(void)
skb_queue_head_init
(
&
llc_main_station
.
mac_pdu_q
);
skb_queue_head_init
(
&
llc_main_station
.
mac_pdu_q
);
skb_queue_head_init
(
&
llc_main_station
.
ev_q
.
list
);
skb_queue_head_init
(
&
llc_main_station
.
ev_q
.
list
);
spin_lock_init
(
&
llc_main_station
.
ev_q
.
lock
);
spin_lock_init
(
&
llc_main_station
.
ev_q
.
lock
);
init_timer
(
&
llc_main_station
.
ack_timer
);
llc_main_station
.
ack_timer
.
data
=
(
unsigned
long
)
&
llc_main_station
;
llc_main_station
.
ack_timer
.
data
=
(
unsigned
long
)
&
llc_main_station
;
llc_main_station
.
ack_timer
.
function
=
llc_station_ack_tmr_cb
;
llc_main_station
.
ack_timer
.
function
=
llc_station_ack_tmr_cb
;
...
...
net/sched/sch_sfq.c
View file @
1b159766
...
@@ -411,9 +411,9 @@ static int sfq_init(struct Qdisc *sch, struct rtattr *opt)
...
@@ -411,9 +411,9 @@ static int sfq_init(struct Qdisc *sch, struct rtattr *opt)
struct
sfq_sched_data
*
q
=
(
struct
sfq_sched_data
*
)
sch
->
data
;
struct
sfq_sched_data
*
q
=
(
struct
sfq_sched_data
*
)
sch
->
data
;
int
i
;
int
i
;
init_timer
(
&
q
->
perturb_timer
);
q
->
perturb_timer
.
data
=
(
unsigned
long
)
sch
;
q
->
perturb_timer
.
data
=
(
unsigned
long
)
sch
;
q
->
perturb_timer
.
function
=
sfq_perturbation
;
q
->
perturb_timer
.
function
=
sfq_perturbation
;
init_timer
(
&
q
->
perturb_timer
);
for
(
i
=
0
;
i
<
SFQ_HASH_DIVISOR
;
i
++
)
for
(
i
=
0
;
i
<
SFQ_HASH_DIVISOR
;
i
++
)
q
->
ht
[
i
]
=
SFQ_DEPTH
;
q
->
ht
[
i
]
=
SFQ_DEPTH
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment