Skip to content

Commit

Permalink
tracepoints: synchronize unregister static inline
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Mathieu Desnoyers authored and Ingo Molnar committed Oct 14, 2008
1 parent f2461fc commit 231375c
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion include/linux/tracepoint.h
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 231375c

Please sign in to comment.