|
@@ -491,8 +491,12 @@ static inline void __ftrace_enabled_restore(int enabled)
|
|
|
extern void trace_preempt_on(unsigned long a0, unsigned long a1);
|
|
|
extern void trace_preempt_off(unsigned long a0, unsigned long a1);
|
|
|
#else
|
|
|
- static inline void trace_preempt_on(unsigned long a0, unsigned long a1) { }
|
|
|
- static inline void trace_preempt_off(unsigned long a0, unsigned long a1) { }
|
|
|
+/*
|
|
|
+ * Use defines instead of static inlines because some arches will make code out
|
|
|
+ * of the CALLER_ADDR, when we really want these to be a real nop.
|
|
|
+ */
|
|
|
+# define trace_preempt_on(a0, a1) do { } while (0)
|
|
|
+# define trace_preempt_off(a0, a1) do { } while (0)
|
|
|
#endif
|
|
|
|
|
|
#ifdef CONFIG_FTRACE_MCOUNT_RECORD
|