diff options
Diffstat (limited to 'include/net/codel.h')
-rw-r--r-- | include/net/codel.h | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/include/net/codel.h b/include/net/codel.h index 3b04ff5f6f8d..fe0eab32ce76 100644 --- a/include/net/codel.h +++ b/include/net/codel.h | |||
@@ -46,7 +46,6 @@ | |||
46 | #include <linux/skbuff.h> | 46 | #include <linux/skbuff.h> |
47 | #include <net/pkt_sched.h> | 47 | #include <net/pkt_sched.h> |
48 | #include <net/inet_ecn.h> | 48 | #include <net/inet_ecn.h> |
49 | #include <linux/reciprocal_div.h> | ||
50 | 49 | ||
51 | /* Controlling Queue Delay (CoDel) algorithm | 50 | /* Controlling Queue Delay (CoDel) algorithm |
52 | * ========================================= | 51 | * ========================================= |
@@ -211,10 +210,9 @@ static codel_time_t codel_control_law(codel_time_t t, | |||
211 | codel_time_t interval, | 210 | codel_time_t interval, |
212 | u32 rec_inv_sqrt) | 211 | u32 rec_inv_sqrt) |
213 | { | 212 | { |
214 | return t + reciprocal_divide(interval, rec_inv_sqrt << REC_INV_SQRT_SHIFT); | 213 | return t + reciprocal_scale(interval, rec_inv_sqrt << REC_INV_SQRT_SHIFT); |
215 | } | 214 | } |
216 | 215 | ||
217 | |||
218 | static bool codel_should_drop(const struct sk_buff *skb, | 216 | static bool codel_should_drop(const struct sk_buff *skb, |
219 | struct Qdisc *sch, | 217 | struct Qdisc *sch, |
220 | struct codel_vars *vars, | 218 | struct codel_vars *vars, |