net: rtl8169: Support RTL-8168c/8111c
[oweals/u-boot.git] / lib / div64.c
index 7abc68c33320d6132609bdf7649e90b8c0873ccf..62933c92c4fb0638101e09fcaf78045c8a07e1dd 100644 (file)
 #if BITS_PER_LONG == 32
 
 #ifndef __div64_32
-u32 __attribute__((weak)) __div64_32(u64 *n, u32 base)
+/*
+ * Don't instrument this function as it may be called from tracing code, since
+ * it needs to read the timer and this often requires calling do_div(), which
+ * calls this function.
+ */
+uint32_t __attribute__((weak, no_instrument_function)) __div64_32(u64 *n,
+                                                                 u32 base)
 {
        u64 rem = *n;
        u64 b = base;