linux 2.6.16.38 w/ vs2.0.3-rc1
[linux-2.6.git] / include / net / red.h
index a4eb379..2ed4358 100644 (file)
@@ -1,6 +1,7 @@
 #ifndef __NET_SCHED_RED_H
 #define __NET_SCHED_RED_H
 
+#include <linux/config.h>
 #include <linux/types.h>
 #include <net/pkt_sched.h>
 #include <net/inet_ecn.h>
@@ -212,7 +213,7 @@ static inline unsigned long red_calc_qavg_from_idle_time(struct red_parms *p)
                 * Seems, it is the best solution to
                 * problem of too coarse exponent tabulation.
                 */
-               us_idle = (p->qavg * (u64)us_idle) >> p->Scell_log;
+               us_idle = (p->qavg * us_idle) >> p->Scell_log;
 
                if (us_idle < (p->qavg >> 1))
                        return p->qavg - us_idle;