#include "../../wrapper/ringbuffer/frontend.h"
#include <linux/errno.h>
+#include <linux/prefetch.h>
/**
* lib_ring_buffer_get_cpu - Precedes ring buffer reserve/commit.
* boundary. It's safe to write.
*/
*o_end = *o_begin + ctx->slot_size;
-
- if (unlikely((subbuf_offset(*o_end, chan)) == 0))
- /*
- * The offset_end will fall at the very beginning of the next
- * subbuffer.
- */
- return 1;
-
return 0;
}