mirror of
https://github.com/Fishwaldo/linux-bl808.git
synced 2025-06-17 20:25:19 +00:00
[NET_SCHED]: kill PSCHED_SET_PASTPERFECT/PSCHED_IS_PASTPERFECT
Use direct assignment and comparison instead. Signed-off-by: Patrick McHardy <kaber@trash.net> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
104e087898
commit
a084980dcb
4 changed files with 12 additions and 14 deletions
|
@ -151,7 +151,7 @@ static inline void red_set_parms(struct red_parms *p,
|
|||
|
||||
static inline int red_is_idling(struct red_parms *p)
|
||||
{
|
||||
return !PSCHED_IS_PASTPERFECT(p->qidlestart);
|
||||
return p->qidlestart != PSCHED_PASTPERFECT;
|
||||
}
|
||||
|
||||
static inline void red_start_of_idle_period(struct red_parms *p)
|
||||
|
@ -161,7 +161,7 @@ static inline void red_start_of_idle_period(struct red_parms *p)
|
|||
|
||||
static inline void red_end_of_idle_period(struct red_parms *p)
|
||||
{
|
||||
PSCHED_SET_PASTPERFECT(p->qidlestart);
|
||||
p->qidlestart = PSCHED_PASTPERFECT;
|
||||
}
|
||||
|
||||
static inline void red_restart(struct red_parms *p)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue