Skip to content

Commit

Permalink
markers: turn marker_synchronize_unregister() into an inline
Browse files Browse the repository at this point in the history
Turn marker 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 ed86a59 commit 53c8c8f
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion include/linux/marker.h
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
*/

#include <linux/types.h>
#include <linux/rcupdate.h>

struct module;
struct marker;
Expand Down Expand Up @@ -165,6 +166,9 @@ extern void *marker_get_private_data(const char *name, marker_probe_func *probe,
* unregistration and the end of module exit to make sure there is no caller
* executing a probe when it is freed.
*/
#define marker_synchronize_unregister() synchronize_sched()
static inline void marker_synchronize_unregister(void)
{
synchronize_sched();
}

#endif

0 comments on commit 53c8c8f

Please sign in to comment.