From 5e883a3888ebbe4f271d881a93cf71e8175b5f04 Mon Sep 17 00:00:00 2001 From: Stephen Hemminger Date: Tue, 29 Jun 2004 00:45:35 -0700 Subject: [PKT_SCHED]: Use get_jiffies_64() The packet scheduler simulates 64 bit jiffies on 32 bit platforms by running a timer keeping a mark and and offset. Since there is no locking and this is racy and doesn't handle jiffie wrap real well. We can use get_jiffies_64 on 2.6 do get what is needed. The downside is the overhead of a function call, and a cache miss in get_jiffies_64. Signed-off-by: Stephen Hemminger Signed-off-by: David S. Miller --- include/net/pkt_sched.h | 15 +-------------- 1 file changed, 1 insertion(+), 14 deletions(-) (limited to 'include') diff --git a/include/net/pkt_sched.h b/include/net/pkt_sched.h index 2b9adcee816e..99bc7af242a5 100644 --- a/include/net/pkt_sched.h +++ b/include/net/pkt_sched.h @@ -231,20 +231,7 @@ extern psched_time_t psched_time_base; #define PSCHED_JSCALE 10 #endif -#if BITS_PER_LONG <= 32 - -#define PSCHED_WATCHER unsigned long - -extern PSCHED_WATCHER psched_time_mark; - -#define PSCHED_GET_TIME(stamp) ((stamp) = psched_time_base + (((unsigned long)(jiffies-psched_time_mark))<>PSCHED_JSCALE) #define PSCHED_JIFFIE2US(delay) ((delay)<