diff options
author | Wen Yang <[email protected]> | 2020-01-20 18:04:56 +0800 |
---|---|---|
committer | David S. Miller <[email protected]> | 2020-01-21 10:45:49 +0100 |
commit | 5b2f1f3070b6447b76174ea8bfb7390dc6253ebd (patch) | |
tree | 1c9a026cc81dde4020ca68da9ed68dc0978a2a47 /drivers/fpga/fpga-mgr.c | |
parent | cb626bf566eb4433318d35681286c494f04fedcc (diff) |
tcp_bbr: improve arithmetic division in bbr_update_bw()
do_div() does a 64-by-32 division. Use div64_long() instead of it
if the divisor is long, to avoid truncation to 32-bit.
And as a nice side effect also cleans up the function a bit.
Signed-off-by: Wen Yang <[email protected]>
Cc: Eric Dumazet <[email protected]>
Cc: "David S. Miller" <[email protected]>
Cc: Alexey Kuznetsov <[email protected]>
Cc: Hideaki YOSHIFUJI <[email protected]>
Cc: [email protected]
Cc: [email protected]
Signed-off-by: Eric Dumazet <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'drivers/fpga/fpga-mgr.c')
0 files changed, 0 insertions, 0 deletions