| 1 | #ifndef _LINUX_RING_BUFFER_NOHZ_H |
| 2 | #define _LINUX_RING_BUFFER_NOHZ_H |
| 3 | |
| 4 | /* |
| 5 | * ringbuffer/nohz.h |
| 6 | * |
| 7 | * Copyright (C) 2011 Mathieu Desnoyers <mathieu.desnoyers@efficios.com> |
| 8 | * |
| 9 | * Dual LGPL v2.1/GPL v2 license. |
| 10 | */ |
| 11 | |
| 12 | #ifdef CONFIG_LIB_RING_BUFFER |
| 13 | void lib_ring_buffer_tick_nohz_flush(void); |
| 14 | void lib_ring_buffer_tick_nohz_stop(void); |
| 15 | void lib_ring_buffer_tick_nohz_restart(void); |
| 16 | #else |
| 17 | static inline void lib_ring_buffer_tick_nohz_flush(void) |
| 18 | { |
| 19 | } |
| 20 | |
| 21 | static inline void lib_ring_buffer_tick_nohz_stop(void) |
| 22 | { |
| 23 | } |
| 24 | |
| 25 | static inline void lib_ring_buffer_tick_nohz_restart(void) |
| 26 | { |
| 27 | } |
| 28 | #endif |
| 29 | |
| 30 | #endif /* _LINUX_RING_BUFFER_NOHZ_H */ |