X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=include%2Fnet%2Fred.h;h=3cf31d466a81254e019aac768666458ffbae6009;hb=c6581a457e661b7070e484ad723bbf555b17aca2;hp=0bc16913fdd72f0bebb28fac10dfb1e99717d3de;hpb=03cc45c0a5b9b7f74768feb43b9a2525d203bbdb;p=linux-2.6 diff --git a/include/net/red.h b/include/net/red.h index 0bc16913fd..3cf31d466a 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,7 +177,7 @@ static inline unsigned long red_calc_qavg_from_idle_time(struct red_parms *p) long us_idle; int shift; - PSCHED_GET_TIME(now); + now = psched_get_time(); us_idle = psched_tdiff_bounded(now, p->qidlestart, p->Scell_max); /*