summaryrefslogtreecommitdiffstats
path: root/kernel/trace/ring_buffer.c
diff options
context:
space:
mode:
authorQiujun Huang <hqjagain@gmail.com>2020-10-17 11:52:46 +0200
committerSteven Rostedt (VMware) <rostedt@goodmis.org>2020-10-22 17:26:26 +0200
commite1981f75d398c0afe83c8ffa4e5864f037967409 (patch)
tree4ba019ca4ad981945a162f879483ed3fd8c32463 /kernel/trace/ring_buffer.c
parentring-buffer: Return 0 on success from ring_buffer_resize() (diff)
downloadlinux-e1981f75d398c0afe83c8ffa4e5864f037967409.tar.xz
linux-e1981f75d398c0afe83c8ffa4e5864f037967409.zip
ring-buffer: Update the description for ring_buffer_wait
The function changed at some point, but the description was not updated. Link: https://lkml.kernel.org/r/20201017095246.5170-1-hqjagain@gmail.com Signed-off-by: Qiujun Huang <hqjagain@gmail.com> Signed-off-by: Steven Rostedt (VMware) <rostedt@goodmis.org>
Diffstat (limited to 'kernel/trace/ring_buffer.c')
-rw-r--r--kernel/trace/ring_buffer.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/trace/ring_buffer.c b/kernel/trace/ring_buffer.c
index 5c6a9c6a058f..7f45fd9d5a45 100644
--- a/kernel/trace/ring_buffer.c
+++ b/kernel/trace/ring_buffer.c
@@ -793,7 +793,7 @@ static void rb_wake_up_waiters(struct irq_work *work)
* ring_buffer_wait - wait for input to the ring buffer
* @buffer: buffer to wait on
* @cpu: the cpu buffer to wait on
- * @full: wait until a full page is available, if @cpu != RING_BUFFER_ALL_CPUS
+ * @full: wait until the percentage of pages are available, if @cpu != RING_BUFFER_ALL_CPUS
*
* If @cpu == RING_BUFFER_ALL_CPUS then the task will wake up as soon
* as data is added to any of the @buffer's cpu buffers. Otherwise