
22 Apr
2019
22 Apr
'19
4:38 a.m.
This function may be called from tracing code, since that code needs to read the timer and this often requires calling do_div(), which calls __div64_32(). If this function is instrumented it causes an infinite loop, since emitting a trace record requests the time, which in turn emits a trace record, etc.
Update the prototype to prevent instrumentation code being added.
Signed-off-by: Simon Glass sjg@chromium.org ---
Changes in v2: - Add new patch to avoid instrumenting the division function
lib/div64.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-)
Applied to u-boot-dm, thanks!