summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMathieu Desnoyers <mathieu.desnoyers@polymtl.ca>2008-10-03 11:52:54 -0400
committerIngo Molnar <mingo@elte.hu>2008-10-14 10:38:40 +0200
commit53c8c8fdfd2d2d515bdcb3d0f2a11d1f3f42ece1 (patch)
tree37c0af18e73feeeb8301473de1932163df1d96be
parented86a59071a4ccd0e9bcefc61e013759a21eda78 (diff)
downloadop-kernel-dev-53c8c8fdfd2d2d515bdcb3d0f2a11d1f3f42ece1.zip
op-kernel-dev-53c8c8fdfd2d2d515bdcb3d0f2a11d1f3f42ece1.tar.gz
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: Mathieu Desnoyers <mathieu.desnoyers@polymtl.ca> Signed-off-by: Ingo Molnar <mingo@elte.hu>
-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 889196c..38e32e7 100644
--- a/include/linux/marker.h
+++ b/include/linux/marker.h
@@ -13,6 +13,7 @@
*/
#include <linux/types.h>
+#include <linux/rcupdate.h>
struct module;
struct marker;
@@ -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
OpenPOWER on IntegriCloud