commit | 4c2f8a48e989c323e4fb378f95ceaa8091760832 | [log] [tgz] |
---|---|---|
author | Bryan O'Donoghue <bryan.odonoghue@linaro.org> | Fri Jun 10 16:10:12 2016 +0100 |
committer | Greg Kroah-Hartman <gregkh@google.com> | Fri Jun 10 16:26:31 2016 -0700 |
tree | 9317087426feaffdd03152c494ffea8679ac3f2c | |
parent | 6db9cc68d7f9cea440293af4225a7b7f22d1d86d [diff] |
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>