aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--include/linux/marker.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/include/linux/marker.h b/include/linux/marker.h
index 889196c7fbb1..38e32e781ed7 100644
--- a/include/linux/marker.h
+++ b/include/linux/marker.h
@@ -13,6 +13,7 @@
13 */ 13 */
14 14
15#include <linux/types.h> 15#include <linux/types.h>
16#include <linux/rcupdate.h>
16 17
17struct module; 18struct module;
18struct marker; 19struct marker;
@@ -165,6 +166,9 @@ extern void *marker_get_private_data(const char *name, marker_probe_func *probe,
165 * unregistration and the end of module exit to make sure there is no caller 166 * unregistration and the end of module exit to make sure there is no caller
166 * executing a probe when it is freed. 167 * executing a probe when it is freed.
167 */ 168 */
168#define marker_synchronize_unregister() synchronize_sched() 169static inline void marker_synchronize_unregister(void)
170{
171 synchronize_sched();
172}
169 173
170#endif 174#endif