diff options
author | Mathieu Desnoyers <mathieu.desnoyers@polymtl.ca> | 2008-10-03 15:01:33 -0400 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2008-10-14 04:39:31 -0400 |
commit | 231375cc5cc3549bb413f94a164bdcbd5f9ce943 (patch) | |
tree | 03ff935268f5c551da14704d14667e6951a5b25f /include/linux/tracepoint.h | |
parent | f2461fc82a083dd60062e05e704c5fcc1c658ba1 (diff) |
tracepoints: synchronize unregister static inline
Turn tracepoint synchronize unregister into a static inline. There is no
reason to keep it as a macro over a static inline.
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@polymtl.ca>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'include/linux/tracepoint.h')
-rw-r--r-- | include/linux/tracepoint.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/include/linux/tracepoint.h b/include/linux/tracepoint.h index 199f4c207c1e..c5bb39c7a770 100644 --- a/include/linux/tracepoint.h +++ b/include/linux/tracepoint.h | |||
@@ -129,6 +129,9 @@ extern int tracepoint_get_iter_range(struct tracepoint **tracepoint, | |||
129 | * probe unregistration and the end of module exit to make sure there is no | 129 | * probe unregistration and the end of module exit to make sure there is no |
130 | * caller executing a probe when it is freed. | 130 | * caller executing a probe when it is freed. |
131 | */ | 131 | */ |
132 | #define tracepoint_synchronize_unregister() synchronize_sched() | 132 | static inline void tracepoint_synchronize_unregister(void) |
133 | { | ||
134 | synchronize_sched(); | ||
135 | } | ||
133 | 136 | ||
134 | #endif | 137 | #endif |