sched/walt: use do_div instead of division operator
authorAmit Pundir <amit.pundir@linaro.org>
Wed, 24 Aug 2016 06:22:17 +0000 (11:52 +0530)
committerAmit Pundir <amit.pundir@linaro.org>
Wed, 14 Sep 2016 09:47:01 +0000 (15:17 +0530)
commit6b84e134d8420374c1640f4615953dc4f8563c0d
treeadd6d2f347be8da29447226638c26829ae022395
parent8a187171b09aa3b63086daea3ba4a5f06acea0be
sched/walt: use do_div instead of division operator

Use do_div() instead of "/" operator to fix undefined references to
"__aeabi_uldivmod" build error for ARCH=arm.

Also in TP_fast_assign(), along with do_div() usage,  replace "," with
";" which would have resulted in a syntax error (!), because
'#define TP_fast_assign(args...) args' would have stripped off the ","
and left white space between these two assignments after CPP phase.

Signed-off-by: Amit Pundir <amit.pundir@linaro.org>
[jstultz: Cherry-picked from common/android-3.18]
Signed-off-by: John Stultz <john.stultz@linaro.org>
include/trace/events/sched.h
kernel/sched/sched.h