Merge tag 'v3.6-rc7' into core/rcu
authorIngo Molnar <mingo@kernel.org>
Tue, 25 Sep 2012 07:24:59 +0000 (09:24 +0200)
committerIngo Molnar <mingo@kernel.org>
Tue, 25 Sep 2012 07:26:55 +0000 (09:26 +0200)
Merge Linux 3.6-rc7, to pick up fixes and to resolve a conflict in an
upcoming pull.

Signed-off-by: Ingo Molnar <mingo@kernel.org>
include/linux/tracepoint.h

index 802de56..2f322c3 100644 (file)
@@ -136,6 +136,22 @@ static inline void tracepoint_synchronize_unregister(void)
                postrcu;                                                \
        } while (0)
 
+#ifndef MODULE
+#define __DECLARE_TRACE_RCU(name, proto, args, cond, data_proto, data_args)    \
+       static inline void trace_##name##_rcuidle(proto)                \
+       {                                                               \
+               if (static_key_false(&__tracepoint_##name.key))         \
+                       __DO_TRACE(&__tracepoint_##name,                \
+                               TP_PROTO(data_proto),                   \
+                               TP_ARGS(data_args),                     \
+                               TP_CONDITION(cond),                     \
+                               rcu_idle_exit(),                        \
+                               rcu_idle_enter());                      \
+       }
+#else
+#define __DECLARE_TRACE_RCU(name, proto, args, cond, data_proto, data_args)
+#endif
+
 /*
  * Make sure the alignment of the structure in the __tracepoints section will
  * not add unwanted padding between the beginning of the section and the
@@ -151,16 +167,8 @@ static inline void tracepoint_synchronize_unregister(void)
                                TP_ARGS(data_args),                     \
                                TP_CONDITION(cond),,);                  \
        }                                                               \
-       static inline void trace_##name##_rcuidle(proto)                \
-       {                                                               \
-               if (static_key_false(&__tracepoint_##name.key))         \
-                       __DO_TRACE(&__tracepoint_##name,                \
-                               TP_PROTO(data_proto),                   \
-                               TP_ARGS(data_args),                     \
-                               TP_CONDITION(cond),                     \
-                               rcu_idle_exit(),                        \
-                               rcu_idle_enter());                      \
-       }                                                               \
+       __DECLARE_TRACE_RCU(name, PARAMS(proto), PARAMS(args),          \
+               PARAMS(cond), PARAMS(data_proto), PARAMS(data_args))    \
        static inline int                                               \
        register_trace_##name(void (*probe)(data_proto), void *data)    \
        {                                                               \