From: Mathieu Desnoyers Date: Fri, 3 Oct 2008 19:01:33 +0000 (-0400) Subject: tracepoints: synchronize unregister static inline X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=231375cc5cc3549bb413f94a164bdcbd5f9ce943;p=GitHub%2Fmt8127%2Fandroid_kernel_alcatel_ttab.git 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 Signed-off-by: Ingo Molnar --- 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, * probe unregistration and the end of module exit to make sure there is no * caller executing a probe when it is freed. */ -#define tracepoint_synchronize_unregister() synchronize_sched() +static inline void tracepoint_synchronize_unregister(void) +{ + synchronize_sched(); +} #endif