net: sched: pie: fix 64-bit division
authorLeslie Monis <lesliemonis@gmail.com>
Wed, 27 Feb 2019 01:00:06 +0000 (06:30 +0530)
committerDavid S. Miller <davem@davemloft.net>
Wed, 27 Feb 2019 02:55:38 +0000 (18:55 -0800)
commitff8285f81822dc8f528b36b6c5c8ab132367e92d
tree0edf40ff6ff3d082b82b6a91b0373f95bbc1866a
parent3b40bf4e24d13a858b7e58687ed9580157bcf17e
net: sched: pie: fix 64-bit division

Use div_u64() to resolve build failures on 32-bit platforms.

Fixes: 3f7ae5f3dc52 ("net: sched: pie: add more cases to auto-tune alpha and beta")
Signed-off-by: Leslie Monis <lesliemonis@gmail.com>
Reported-by: Randy Dunlap <rdunlap@infradead.org>
Tested-by: Randy Dunlap <rdunlap@infradead.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/sched/sch_pie.c