X-Git-Url: http://pilppa.org/gitweb/gitweb.cgi?a=blobdiff_plain;f=include%2Fnet%2Fred.h;h=a4eb37946f2cdf1c63f22cc19341a88e6bd76cca;hb=b41ee5d62211825cbe5e583cafc2255c91385aee;hp=5ccdbb3d4722ab400281b3692db23f0a212a14f3;hpb=050335db2a777ffaa859d77beb05fffe9e8c5ae9;p=linux-2.6-omap-h63xx.git diff --git a/include/net/red.h b/include/net/red.h index 5ccdbb3d472..a4eb37946f2 100644 --- a/include/net/red.h +++ b/include/net/red.h @@ -212,7 +212,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 * us_idle) >> p->Scell_log; + us_idle = (p->qavg * (u64)us_idle) >> p->Scell_log; if (us_idle < (p->qavg >> 1)) return p->qavg - us_idle;