X-Git-Url: http://pilppa.org/gitweb/?a=blobdiff_plain;f=include%2Flinux%2Fmarker.h;h=889196c7fbb1e77cc5b4561e2b0b7f937b864434;hb=58e20d8d344b0ee083febb18c2b021d2427e56ca;hp=1290653f924181333f6699d37b161238370b1515;hpb=849c529f57020cc47085400edd5e641d95cd4faf;p=linux-2.6-omap-h63xx.git diff --git a/include/linux/marker.h b/include/linux/marker.h index 1290653f924..889196c7fbb 100644 --- a/include/linux/marker.h +++ b/include/linux/marker.h @@ -160,4 +160,11 @@ extern int marker_probe_unregister_private_data(marker_probe_func *probe, extern void *marker_get_private_data(const char *name, marker_probe_func *probe, int num); +/* + * marker_synchronize_unregister must be called between the last marker 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() + #endif