Commit | Line | Data |
---|---|---|
9f36eaed MJ |
1 | /* SPDX-License-Identifier: (GPL-2.0 OR LGPL-2.1) |
2 | * | |
886d51a3 | 3 | * lib/ringbuffer/nohz.h |
17baffe2 | 4 | * |
886d51a3 | 5 | * Copyright (C) 2011-2012 Mathieu Desnoyers <mathieu.desnoyers@efficios.com> |
17baffe2 MD |
6 | */ |
7 | ||
9f36eaed MJ |
8 | #ifndef _LIB_RING_BUFFER_NOHZ_H |
9 | #define _LIB_RING_BUFFER_NOHZ_H | |
10 | ||
f3bc08c5 MD |
11 | #ifdef CONFIG_LIB_RING_BUFFER |
12 | void lib_ring_buffer_tick_nohz_flush(void); | |
13 | void lib_ring_buffer_tick_nohz_stop(void); | |
14 | void lib_ring_buffer_tick_nohz_restart(void); | |
15 | #else | |
16 | static inline void lib_ring_buffer_tick_nohz_flush(void) | |
17 | { | |
18 | } | |
19 | ||
20 | static inline void lib_ring_buffer_tick_nohz_stop(void) | |
21 | { | |
22 | } | |
23 | ||
24 | static inline void lib_ring_buffer_tick_nohz_restart(void) | |
25 | { | |
26 | } | |
27 | #endif | |
28 | ||
886d51a3 | 29 | #endif /* _LIB_RING_BUFFER_NOHZ_H */ |