diff options
author | David S. Miller <davem@davemloft.net> | 2012-01-05 03:35:43 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2012-01-05 03:35:43 +0100 |
commit | 117ff42fd43e92d24c6aa6f3e4f0f1e1edada140 (patch) | |
tree | c08e1c0357fde481a16489b77feb8f6073faf538 /net/sched | |
parent | ipv6/addrconf: speedup /proc/net/if_inet6 filling (diff) | |
parent | Linux 3.2 (diff) | |
download | linux-117ff42fd43e92d24c6aa6f3e4f0f1e1edada140.tar.xz linux-117ff42fd43e92d24c6aa6f3e4f0f1e1edada140.zip |
Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net
Diffstat (limited to 'net/sched')
-rw-r--r-- | net/sched/sch_qfq.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/net/sched/sch_qfq.c b/net/sched/sch_qfq.c index 2c5ff6148589..e68cb440756a 100644 --- a/net/sched/sch_qfq.c +++ b/net/sched/sch_qfq.c @@ -818,11 +818,11 @@ skip_unblock: static void qfq_update_start(struct qfq_sched *q, struct qfq_class *cl) { unsigned long mask; - uint32_t limit, roundedF; + u64 limit, roundedF; int slot_shift = cl->grp->slot_shift; roundedF = qfq_round_down(cl->F, slot_shift); - limit = qfq_round_down(q->V, slot_shift) + (1UL << slot_shift); + limit = qfq_round_down(q->V, slot_shift) + (1ULL << slot_shift); if (!qfq_gt(cl->F, q->V) || qfq_gt(roundedF, limit)) { /* timestamp was stale */ |