Fix nohz support
authorMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Wed, 11 May 2011 15:05:23 +0000 (11:05 -0400)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Wed, 11 May 2011 15:05:23 +0000 (11:05 -0400)
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
lib/ringbuffer/ring_buffer_frontend.c

index 07ecc1d0aa56825a374df8b418b63c6670f1dff7..9ecabb0b20ee02ff2b6b57fda3ef4a53ef3a7aef 100644 (file)
@@ -437,7 +437,7 @@ int __cpuinit lib_ring_buffer_cpu_hp_callback(struct notifier_block *nb,
 }
 #endif
 
-#ifdef CONFIG_NO_HZ
+#if defined(CONFIG_NO_HZ) && !defined(CONFIG_LIB_RING_BUFFER)
 /*
  * For per-cpu buffers, call the reader wakeups before switching the buffer, so
  * that wake-up-tracing generated events are flushed before going idle (in
@@ -517,7 +517,7 @@ void notrace lib_ring_buffer_tick_nohz_restart(void)
        atomic_notifier_call_chain(&tick_nohz_notifier, TICK_NOHZ_RESTART,
                                   NULL);
 }
-#endif /* CONFIG_NO_HZ */
+#endif /* defined(CONFIG_NO_HZ) && !defined(CONFIG_LIB_RING_BUFFER) */
 
 /*
  * Holds CPU hotplug.
This page took 0.02768 seconds and 4 git commands to generate.