mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-28 17:41:50 +00:00
[NET_SCHED]: turn PSCHED_TDIFF_SAFE into inline function
Also rename to psched_tdiff_bounded. Signed-off-by: Patrick McHardy <kaber@trash.net> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
8edc0c31d6
commit
03cc45c0a5
5 changed files with 14 additions and 10 deletions
|
@ -178,7 +178,7 @@ static inline unsigned long red_calc_qavg_from_idle_time(struct red_parms *p)
|
|||
int shift;
|
||||
|
||||
PSCHED_GET_TIME(now);
|
||||
us_idle = PSCHED_TDIFF_SAFE(now, p->qidlestart, p->Scell_max);
|
||||
us_idle = psched_tdiff_bounded(now, p->qidlestart, p->Scell_max);
|
||||
|
||||
/*
|
||||
* The problem: ideally, average length queue recalcultion should
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue