]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit
greybus: timesync: Do 64 bit divisions in a 32 friendly way
authorBryan O'Donoghue <bryan.odonoghue@linaro.org>
Fri, 10 Jun 2016 15:10:12 +0000 (16:10 +0100)
committerGreg Kroah-Hartman <gregkh@google.com>
Fri, 10 Jun 2016 23:26:31 +0000 (16:26 -0700)
commit4c2f8a48e989c323e4fb378f95ceaa8091760832
tree9317087426feaffdd03152c494ffea8679ac3f2c
parent6db9cc68d7f9cea440293af4225a7b7f22d1d86d
greybus: timesync: Do 64 bit divisions in a 32 friendly way

We need to use 'do_div()' when doing 64 bit division or modulo division
since the kernel will not pull in the gcc builtins __aeabi_ldivmod and
__aeabi_uldivmod on 32 bit builds.

Reported-by: Johan Hovold <johan@hovoldconsulting.com>
Signed-off-by: Bryan O'Donoghue <bryan.odonoghue@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
drivers/staging/greybus/timesync.c