diff options
author | 2012-10-20 00:40:51 +0000 | |
---|---|---|
committer | 2012-10-21 22:21:27 -0400 | |
commit | 46baac38ef633b08168d27df7b02eb14578fb760 (patch) | |
tree | 978bf4b5f300062716c956af2d77a20d3912f3d1 /net/sched/sch_cbq.c | |
parent | be2net: Update driver version (diff) | |
download | linux-46baac38ef633b08168d27df7b02eb14578fb760.tar.gz linux-46baac38ef633b08168d27df7b02eb14578fb760.tar.bz2 linux-46baac38ef633b08168d27df7b02eb14578fb760.zip |
pkt_sched: use ns_to_ktime() helper
ns_to_ktime() seems better than ktime_set() + ktime_add_ns()
Signed-off-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/sched/sch_cbq.c')
-rw-r--r-- | net/sched/sch_cbq.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/net/sched/sch_cbq.c b/net/sched/sch_cbq.c index 564b9fc8efd3..0e19948470b8 100644 --- a/net/sched/sch_cbq.c +++ b/net/sched/sch_cbq.c @@ -509,8 +509,7 @@ static void cbq_ovl_delay(struct cbq_class *cl) cl->cpriority = TC_CBQ_MAXPRIO; q->pmask |= (1<<TC_CBQ_MAXPRIO); - expires = ktime_set(0, 0); - expires = ktime_add_ns(expires, PSCHED_TICKS2NS(sched)); + expires = ns_to_ktime(PSCHED_TICKS2NS(sched)); if (hrtimer_try_to_cancel(&q->delay_timer) && ktime_to_ns(ktime_sub( hrtimer_get_expires(&q->delay_timer), |