]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
lib: Don't instrument the div64 function
authorSimon Glass <sjg@chromium.org>
Wed, 24 Feb 2016 16:14:46 +0000 (09:14 -0700)
committerSimon Glass <sjg@chromium.org>
Fri, 26 Feb 2016 15:53:10 +0000 (08:53 -0700)
This function can be called from the timer code on instrumented functions.
Mark it as 'notrace' so that it doesn't cause infinite recursion.

Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
lib/div64.c

index 795ef0e1e4671ac7a68a189839d48028353c1c29..319fca50fa79e2a61b2bbb1b48f3dbecb339647e 100644 (file)
@@ -18,8 +18,9 @@
 
 #include <div64.h>
 #include <linux/types.h>
+#include <linux/compiler.h>
 
-uint32_t __div64_32(uint64_t *n, uint32_t base)
+uint32_t notrace __div64_32(uint64_t *n, uint32_t base)
 {
        uint64_t rem = *n;
        uint64_t b = base;