Skip to content
Snippets Groups Projects
Commit 53c8c8fd authored by Mathieu Desnoyers's avatar Mathieu Desnoyers Committed by Ingo Molnar
Browse files

markers: turn marker_synchronize_unregister() into an inline


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: default avatarMathieu Desnoyers <mathieu.desnoyers@polymtl.ca>
Signed-off-by: default avatarIngo Molnar <mingo@elte.hu>
parent ed86a590
No related branches found
No related tags found
No related merge requests found
...@@ -13,6 +13,7 @@ ...@@ -13,6 +13,7 @@
*/ */
#include <linux/types.h> #include <linux/types.h>
#include <linux/rcupdate.h>
struct module; struct module;
struct marker; struct marker;
...@@ -165,6 +166,9 @@ extern void *marker_get_private_data(const char *name, marker_probe_func *probe, ...@@ -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 * unregistration and the end of module exit to make sure there is no caller
* executing a probe when it is freed. * executing a probe when it is freed.
*/ */
#define marker_synchronize_unregister() synchronize_sched() static inline void marker_synchronize_unregister(void)
{
synchronize_sched();
}
#endif #endif
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment