diff options
author | Mathieu Desnoyers <mathieu.desnoyers@polymtl.ca> | 2008-10-03 11:52:54 -0400 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2008-10-14 04:38:40 -0400 |
commit | 53c8c8fdfd2d2d515bdcb3d0f2a11d1f3f42ece1 (patch) | |
tree | 37c0af18e73feeeb8301473de1932163df1d96be /include | |
parent | ed86a59071a4ccd0e9bcefc61e013759a21eda78 (diff) |
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>
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/marker.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/include/linux/marker.h b/include/linux/marker.h index 889196c7fbb..38e32e781ed 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 | ||
17 | struct module; | 18 | struct module; |
18 | struct marker; | 19 | struct 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() | 169 | static inline void marker_synchronize_unregister(void) |
170 | { | ||
171 | synchronize_sched(); | ||
172 | } | ||
169 | 173 | ||
170 | #endif | 174 | #endif |