diff options
author | Jiri Pirko <jiri@resnulli.us> | 2013-02-12 01:11:59 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2013-02-13 00:59:44 +0100 |
commit | 324f5aa52814b3cc0b24eec071be2946dbca0e3a (patch) | |
tree | 59860b66d6919f937b1474ad89bef4b5a85c9908 /net/sched/sch_htb.c | |
parent | Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net (diff) | |
download | linux-324f5aa52814b3cc0b24eec071be2946dbca0e3a.tar.xz linux-324f5aa52814b3cc0b24eec071be2946dbca0e3a.zip |
htb: use PSCHED_TICKS2NS()
Signed-off-by: Jiri Pirko <jiri@resnulli.us>
Acked-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/sched/sch_htb.c')
-rw-r--r-- | net/sched/sch_htb.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/net/sched/sch_htb.c b/net/sched/sch_htb.c index 79e8ed4ac7ce..14a83dc0bfff 100644 --- a/net/sched/sch_htb.c +++ b/net/sched/sch_htb.c @@ -1512,8 +1512,8 @@ static int htb_change_class(struct Qdisc *sch, u32 classid, htb_precompute_ratedata(&cl->rate); htb_precompute_ratedata(&cl->ceil); - cl->buffer = hopt->buffer << PSCHED_SHIFT; - cl->cbuffer = hopt->buffer << PSCHED_SHIFT; + cl->buffer = PSCHED_TICKS2NS(hopt->buffer); + cl->cbuffer = PSCHED_TICKS2NS(hopt->buffer); sch_tree_unlock(sch); |