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
nexedi
linux
Commits
11fc78a9
Commit
11fc78a9
authored
Nov 06, 2002
by
Andrew Morton
Committed by
James Morris
Nov 06, 2002
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[NET]: Timer init fixes.
parent
c1e9dcb3
Changes
11
Hide whitespace changes
Inline
Side-by-side
Showing
11 changed files
with
19 additions
and
11 deletions
+19
-11
net/ax25/ax25_dev.c
net/ax25/ax25_dev.c
+4
-0
net/bridge/br_if.c
net/bridge/br_if.c
+2
-0
net/core/dev.c
net/core/dev.c
+1
-1
net/core/dst.c
net/core/dst.c
+1
-1
net/core/profile.c
net/core/profile.c
+2
-3
net/decnet/dn_route.c
net/decnet/dn_route.c
+3
-1
net/ipv6/addrconf.c
net/ipv6/addrconf.c
+2
-1
net/ipv6/ip6_fib.c
net/ipv6/ip6_fib.c
+1
-1
net/ipv6/reassembly.c
net/ipv6/reassembly.c
+1
-1
net/sched/sch_api.c
net/sched/sch_api.c
+1
-2
net/wanrouter/af_wanpipe.c
net/wanrouter/af_wanpipe.c
+1
-0
No files found.
net/ax25/ax25_dev.c
View file @
11fc78a9
...
...
@@ -98,6 +98,10 @@ void ax25_dev_device_up(struct net_device *dev)
ax25_dev
->
values
[
AX25_VALUES_PROTOCOL
]
=
AX25_DEF_PROTOCOL
;
ax25_dev
->
values
[
AX25_VALUES_DS_TIMEOUT
]
=
AX25_DEF_DS_TIMEOUT
;
#if defined(CONFIG_AX25_DAMA_SLAVE) || defined(CONFIG_AX25_DAMA_MASTER)
init_timer
(
&
ax25_dev
->
dama
.
slave_timer
);
#endif
spin_lock_bh
(
&
ax25_dev_lock
);
ax25_dev
->
next
=
ax25_dev_list
;
ax25_dev_list
=
ax25_dev
;
...
...
net/bridge/br_if.c
View file @
11fc78a9
...
...
@@ -106,6 +106,8 @@ static struct net_bridge *new_nb(char *name)
memset
(
br
,
0
,
sizeof
(
*
br
));
dev
=
&
br
->
dev
;
init_timer
(
&
br
->
tick
);
strncpy
(
dev
->
name
,
name
,
IFNAMSIZ
);
dev
->
priv
=
br
;
ether_setup
(
dev
);
...
...
net/core/dev.c
View file @
11fc78a9
...
...
@@ -172,7 +172,7 @@ static struct packet_type *ptype_all; /* Taps */
#ifdef OFFLINE_SAMPLE
static
void
sample_queue
(
unsigned
long
dummy
);
static
struct
timer_list
samp_timer
=
{
function
:
sample_queue
}
;
static
struct
timer_list
samp_timer
=
TIMER_INITIALIZER
(
sample_queue
,
0
,
0
)
;
#endif
#ifdef CONFIG_HOTPLUG
...
...
net/core/dst.c
View file @
11fc78a9
...
...
@@ -39,7 +39,7 @@ static void dst_run_gc(unsigned long);
static
void
___dst_free
(
struct
dst_entry
*
dst
);
static
struct
timer_list
dst_gc_timer
=
{
data
:
DST_GC_MIN
,
function
:
dst_run_gc
}
;
TIMER_INITIALIZER
(
dst_run_gc
,
0
,
DST_GC_MIN
)
;
static
void
dst_run_gc
(
unsigned
long
dummy
)
{
...
...
net/core/profile.c
View file @
11fc78a9
...
...
@@ -34,8 +34,7 @@ long alpha_hi;
static
void
alpha_tick
(
unsigned
long
);
static
struct
timer_list
alpha_timer
=
{
.
function
=
alpha_tick
};
static
struct
timer_list
alpha_timer
=
TIMER_INITIALIZER
(
alpha_tick
,
0
,
0
);
void
alpha_tick
(
unsigned
long
dummy
)
{
...
...
@@ -158,7 +157,7 @@ static void whitehole_inject(unsigned long);
int
whitehole_init
(
struct
net_device
*
dev
);
static
struct
timer_list
whitehole_timer
=
{
.
function
=
whitehole_inject
}
;
TIMER_INITIALIZER
(
whitehole_inject
,
0
,
0
)
;
static
struct
net_device
whitehole_dev
=
{
"whitehole"
,
0x0
,
0x0
,
0x0
,
0x0
,
0
,
0
,
0
,
0
,
0
,
NULL
,
whitehole_init
,
};
...
...
net/decnet/dn_route.c
View file @
11fc78a9
...
...
@@ -109,7 +109,8 @@ static struct dn_rt_hash_bucket *dn_rt_hash_table;
static
unsigned
dn_rt_hash_mask
;
static
struct
timer_list
dn_route_timer
;
static
struct
timer_list
dn_rt_flush_timer
=
{
.
function
=
dn_run_flush
};
static
struct
timer_list
dn_rt_flush_timer
=
TIMER_INITIALIZER
(
dn_run_flush
,
0
,
0
);
int
decnet_dst_gc_interval
=
2
;
static
struct
dst_ops
dn_dst_ops
=
{
...
...
@@ -1260,6 +1261,7 @@ void __init dn_route_init(void)
if
(
!
dn_dst_ops
.
kmem_cachep
)
panic
(
"DECnet: Failed to allocate dn_dst_cache
\n
"
);
init_timer
(
&
dn_route_timer
);
dn_route_timer
.
function
=
dn_dst_check_expire
;
dn_route_timer
.
expires
=
jiffies
+
decnet_dst_gc_interval
*
HZ
;
add_timer
(
&
dn_route_timer
);
...
...
net/ipv6/addrconf.c
View file @
11fc78a9
...
...
@@ -94,7 +94,8 @@ rwlock_t addrconf_lock = RW_LOCK_UNLOCKED;
static
void
addrconf_verify
(
unsigned
long
);
static
struct
timer_list
addr_chk_timer
=
{
.
function
=
addrconf_verify
};
static
struct
timer_list
addr_chk_timer
=
TIMER_INITIALIZER
(
addrconf_verify
,
0
,
0
);
static
spinlock_t
addrconf_verify_lock
=
SPIN_LOCK_UNLOCKED
;
static
int
addrconf_ifdown
(
struct
net_device
*
dev
,
int
how
);
...
...
net/ipv6/ip6_fib.c
View file @
11fc78a9
...
...
@@ -93,7 +93,7 @@ static struct fib6_node * fib6_repair_tree(struct fib6_node *fn);
static
__u32
rt_sernum
=
0
;
static
struct
timer_list
ip6_fib_timer
=
{
.
function
=
fib6_run_gc
}
;
static
struct
timer_list
ip6_fib_timer
=
TIMER_INITIALIZER
(
fib6_run_gc
,
0
,
0
)
;
static
struct
fib6_walker_t
fib6_walker_list
=
{
&
fib6_walker_list
,
&
fib6_walker_list
,
...
...
net/ipv6/reassembly.c
View file @
11fc78a9
...
...
@@ -314,7 +314,7 @@ ip6_frag_create(unsigned int hash, u32 id, struct in6_addr *src, struct in6_addr
ipv6_addr_copy
(
&
fq
->
saddr
,
src
);
ipv6_addr_copy
(
&
fq
->
daddr
,
dst
);
/* init_timer has been done by the memset */
init_timer
(
&
fq
->
timer
);
fq
->
timer
.
function
=
ip6_frag_expire
;
fq
->
timer
.
data
=
(
long
)
fq
;
fq
->
lock
=
SPIN_LOCK_UNLOCKED
;
...
...
net/sched/sch_api.c
View file @
11fc78a9
...
...
@@ -1105,8 +1105,7 @@ PSCHED_WATCHER psched_time_mark;
static
void
psched_tick
(
unsigned
long
);
static
struct
timer_list
psched_timer
=
{
function
:
psched_tick
};
static
struct
timer_list
psched_timer
=
TIMER_INITIALIZER
(
psched_tick
,
0
,
0
);
static
void
psched_tick
(
unsigned
long
dummy
)
{
...
...
net/wanrouter/af_wanpipe.c
View file @
11fc78a9
...
...
@@ -512,6 +512,7 @@ static struct sock *wanpipe_alloc_socket(void)
/* Use timer to send data to the driver. This will act
* as a BH handler for sendmsg functions */
init_timer
(
&
wan_opt
->
tx_timer
);
wan_opt
->
tx_timer
.
data
=
(
unsigned
long
)
sk
;
wan_opt
->
tx_timer
.
function
=
wanpipe_delayed_transmit
;
...
...
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