mirror of
https://github.com/torvalds/linux.git
synced 2026-11-07 06:17:02 +01:00
ring-buffer: Remove unnecessary cpumask_test_cpu
for_each_buffer_cpu() already iterates over buffer->cpumask. Remove the unnecessary cpumask_test_cpu() found in ring_buffer_subbuf_order_set(). Link: https://patch.msgid.link/20260916152813.105082-3-vdonnefort@google.com Signed-off-by: Vincent Donnefort <vdonnefort@google.com> Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
This commit is contained in:
parent
9fd830120f
commit
9dce3e2d1f
|
|
@ -7486,10 +7486,6 @@ int ring_buffer_subbuf_order_set(struct trace_buffer *buffer, int order)
|
|||
|
||||
/* Make sure all new buffers are allocated, before deleting the old ones */
|
||||
for_each_buffer_cpu(buffer, cpu) {
|
||||
|
||||
if (!cpumask_test_cpu(cpu, buffer->cpumask))
|
||||
continue;
|
||||
|
||||
cpu_buffer = buffer->buffers[cpu];
|
||||
|
||||
/* Update the number of pages to match the new size */
|
||||
|
|
@ -7516,9 +7512,6 @@ int ring_buffer_subbuf_order_set(struct trace_buffer *buffer, int order)
|
|||
struct list_head old_pages;
|
||||
unsigned long flags;
|
||||
|
||||
if (!cpumask_test_cpu(cpu, buffer->cpumask))
|
||||
continue;
|
||||
|
||||
cpu_buffer = buffer->buffers[cpu];
|
||||
|
||||
raw_spin_lock_irqsave(&cpu_buffer->reader_lock, flags);
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user