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
32d3d6e8
Commit
32d3d6e8
authored
Feb 06, 2002
by
Jeff Garzik
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Jiffies wrap cleanup for the slip net driver.
Contributor: somebody from lkml, Tim ?.
parent
166c7942
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
drivers/net/slip.c
drivers/net/slip.c
+3
-3
No files found.
drivers/net/slip.c
View file @
32d3d6e8
...
...
@@ -483,7 +483,7 @@ static void sl_tx_timeout(struct net_device *dev)
* 14 Oct 1994 Dmitry Gorodchanin.
*/
#ifdef SL_CHECK_TRANSMIT
if
(
jiffies
-
dev
->
trans_start
<
20
*
HZ
)
{
if
(
time_before
(
jiffies
,
dev
->
trans_start
+
20
*
HZ
)
)
{
/* 20 sec timeout not reached */
goto
out
;
}
...
...
@@ -1387,7 +1387,7 @@ cleanup_module(void)
int
i
;
if
(
slip_ctrls
!=
NULL
)
{
unsigned
long
start
=
jiffies
;
unsigned
long
timeout
=
jiffies
+
HZ
;
int
busy
=
0
;
/* First of all: check for active disciplines and hangup them.
...
...
@@ -1410,7 +1410,7 @@ cleanup_module(void)
spin_unlock
(
&
slc
->
ctrl
.
lock
);
}
local_bh_enable
();
}
while
(
busy
&&
jiffies
-
start
<
1
*
HZ
);
}
while
(
busy
&&
time_before
(
jiffies
,
timeout
)
);
busy
=
0
;
for
(
i
=
0
;
i
<
slip_maxdev
;
i
++
)
{
...
...
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