Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
}
#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
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.