summaryrefslogtreecommitdiff
path: root/drivers/xen/evtchn.c
diff options
context:
space:
mode:
authorArnd Bergmann <arnd@arndb.de>2015-11-20 17:41:36 +0100
committerDoug Ledford <dledford@redhat.com>2015-12-07 16:42:33 -0500
commit2c63d1072ad7cf1059333ef5cfa06075bead4a39 (patch)
treed4d2d40ca9d67e97ef9296bc878de62bc3e3aff1 /drivers/xen/evtchn.c
parentd144da8c6f51f48ec39d891ea9dff80169c45f3b (diff)
IB/iser: use sector_div instead of do_div
do_div is the wrong way to divide a sector_t, as it is less efficient when sector_t is 32-bit wide. With the upcoming do_div optimizations, the kernel starts warning about this: drivers/infiniband/ulp/iser/iser_verbs.c:1296:4: note: in expansion of macro 'do_div' include/asm-generic/div64.h:224:22: warning: passing argument 1 of '__div64_32' from incompatible pointer type This changes the code to use sector_div instead, which always produces optimal code. Signed-off-by: Arnd Bergmann <arnd@arndb.de> Reviewed-by: Sagi Grimberg <sagig@mellanox.com> Signed-off-by: Doug Ledford <dledford@redhat.com>
Diffstat (limited to 'drivers/xen/evtchn.c')
0 files changed, 0 insertions, 0 deletions