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
80f9a35d
Commit
80f9a35d
authored
Mar 19, 2002
by
Alexey Kuznetsov
Committed by
David S. Miller
Mar 19, 2002
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Make pkt_sched.h:PSCHED_TDIFF_SAFE behave sane when measuring
large time intervals.
parent
bc450c1e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
include/net/pkt_sched.h
include/net/pkt_sched.h
+2
-2
No files found.
include/net/pkt_sched.h
View file @
80f9a35d
...
@@ -358,8 +358,8 @@ extern int psched_tod_diff(int delta_sec, int bound);
...
@@ -358,8 +358,8 @@ extern int psched_tod_diff(int delta_sec, int bound);
#define PSCHED_TDIFF(tv1, tv2) (long)((tv1) - (tv2))
#define PSCHED_TDIFF(tv1, tv2) (long)((tv1) - (tv2))
#define PSCHED_TDIFF_SAFE(tv1, tv2, bound, guard) \
#define PSCHED_TDIFF_SAFE(tv1, tv2, bound, guard) \
({ \
({ \
long __delta = (tv1) - (tv2); \
long
long
__delta = (tv1) - (tv2); \
if ( __delta > (bound)) { __delta = (bound); guard; } \
if ( __delta > (
long long)(
bound)) { __delta = (bound); guard; } \
__delta; \
__delta; \
})
})
...
...
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