lib ring buffer: add frontend init as module_init
authorMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Wed, 21 Sep 2011 14:14:20 +0000 (10:14 -0400)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Wed, 21 Sep 2011 14:14:20 +0000 (10:14 -0400)
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
lib/ringbuffer/ring_buffer_frontend.c

index a45373b062d4bd5ae95b0519170b0c9e51224961..8eb59486f808e9f936e3b3ad42512bfd3a58655d 100644 (file)
@@ -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);
This page took 0.031445 seconds and 4 git commands to generate.