X-Git-Url: http://pilppa.org/gitweb/gitweb.cgi?a=blobdiff_plain;f=include%2Fnet%2Fred.h;h=3cf31d466a81254e019aac768666458ffbae6009;hb=0cfd81031a26717fe14380d18275f8e217571615;hp=d9e1149a2bca6874e4072a8e1e4556b80d2bbe1f;hpb=a084980dcbf56c896e4b6c19aff2b082d5db7006;p=linux-2.6-omap-h63xx.git diff --git a/include/net/red.h b/include/net/red.h index d9e1149a2bc..3cf31d466a8 100644 --- a/include/net/red.h +++ b/include/net/red.h @@ -156,7 +156,7 @@ static inline int red_is_idling(struct red_parms *p) static inline void red_start_of_idle_period(struct red_parms *p) { - PSCHED_GET_TIME(p->qidlestart); + p->qidlestart = psched_get_time(); } static inline void red_end_of_idle_period(struct red_parms *p) @@ -177,8 +177,8 @@ static inline unsigned long red_calc_qavg_from_idle_time(struct red_parms *p) long us_idle; int shift; - PSCHED_GET_TIME(now); - us_idle = PSCHED_TDIFF_SAFE(now, p->qidlestart, p->Scell_max); + now = psched_get_time(); + us_idle = psched_tdiff_bounded(now, p->qidlestart, p->Scell_max); /* * The problem: ideally, average length queue recalcultion should