From: Mathieu Desnoyers Date: Wed, 21 Sep 2011 14:14:20 +0000 (-0400) Subject: lib ring buffer: add frontend init as module_init X-Git-Tag: v2.0-pre9~26 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=02a766bbaa8b112e87d88aa4a70a507f5a6deb99;p=lttng-modules.git lib ring buffer: add frontend init as module_init Signed-off-by: Mathieu Desnoyers --- diff --git a/lib/ringbuffer/ring_buffer_frontend.c b/lib/ringbuffer/ring_buffer_frontend.c index a45373b0..8eb59486 100644 --- a/lib/ringbuffer/ring_buffer_frontend.c +++ b/lib/ringbuffer/ring_buffer_frontend.c @@ -1703,10 +1703,13 @@ int lib_ring_buffer_reserve_slow(struct lib_ring_buffer_ctx *ctx) } EXPORT_SYMBOL_GPL(lib_ring_buffer_reserve_slow); -void __init init_lib_ring_buffer_frontend(void) +int __init init_lib_ring_buffer_frontend(void) { int cpu; for_each_possible_cpu(cpu) spin_lock_init(&per_cpu(ring_buffer_nohz_lock, cpu)); + return 0; } + +module_init(init_lib_ring_buffer_frontend);