summaryrefslogtreecommitdiffstats
path: root/tc/tc_core.c
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-05-17 14:59:00 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-05-17 14:59:00 +0000
commitd47129cf707fac663264651c7112992bc3265003 (patch)
treecc8dc1693e8bd981bf2cc0107c25305f9999f00c /tc/tc_core.c
parentReleasing progress-linux version 6.8.0-1~progress7.99u1. (diff)
downloadiproute2-d47129cf707fac663264651c7112992bc3265003.tar.xz
iproute2-d47129cf707fac663264651c7112992bc3265003.zip
Merging upstream version 6.9.0.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'tc/tc_core.c')
-rw-r--r--tc/tc_core.c15
1 files changed, 3 insertions, 12 deletions
diff --git a/tc/tc_core.c b/tc/tc_core.c
index 871ceb4..37547e9 100644
--- a/tc/tc_core.c
+++ b/tc/tc_core.c
@@ -23,23 +23,14 @@
static double tick_in_usec = 1;
static double clock_factor = 1;
-int tc_core_time2big(unsigned int time)
+static unsigned int tc_core_time2tick(unsigned int time)
{
- __u64 t = time;
-
- t *= tick_in_usec;
- return (t >> 32) != 0;
-}
-
-
-unsigned int tc_core_time2tick(unsigned int time)
-{
- return time*tick_in_usec;
+ return time * tick_in_usec;
}
unsigned int tc_core_tick2time(unsigned int tick)
{
- return tick/tick_in_usec;
+ return tick / tick_in_usec;
}
unsigned int tc_core_time2ktime(unsigned int time)