]> git.baikalelectronics.ru Git - uboot.git/commit
div64: Don't instrument the division function
authorSimon Glass <sjg@chromium.org>
Mon, 8 Apr 2019 19:20:49 +0000 (13:20 -0600)
committerSimon Glass <sjg@chromium.org>
Wed, 24 Apr 2019 02:26:43 +0000 (20:26 -0600)
commit799e5be4a7379d29b54533db52b3a38c1308b886
tree96c5ea9cd354e68a390c1c31e8bab5d0dbe8c182
parent0374a03544a064bb69fa173c40232f435cf8914a
div64: Don't instrument the division function

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>
lib/div64.c