]> Git Repo - J-u-boot.git/commitdiff
lib: Don't instrument the div64 function
authorSimon Glass <[email protected]>
Wed, 24 Feb 2016 16:14:46 +0000 (09:14 -0700)
committerSimon Glass <[email protected]>
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 <[email protected]>
Reviewed-by: Bin Meng <[email protected]>
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;
This page took 0.034284 seconds and 4 git commands to generate.