Commit 83cc112e82fea5f521a3bf6334dce6e6c56ef0e6

Authored by Simon Glass
1 parent 5eca977935

lib: Don't instrument the div64 function

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>

Showing 1 changed file with 2 additions and 1 deletions Side-by-side Diff

... ... @@ -18,8 +18,9 @@
18 18  
19 19 #include <div64.h>
20 20 #include <linux/types.h>
  21 +#include <linux/compiler.h>
21 22  
22   -uint32_t __div64_32(uint64_t *n, uint32_t base)
  23 +uint32_t notrace __div64_32(uint64_t *n, uint32_t base)
23 24 {
24 25 uint64_t rem = *n;
25 26 uint64_t b = base;