mirror of
https://github.com/torvalds/linux.git
synced 2026-09-22 12:44:03 +02:00
ring-buffer: Remove trace_buffer::cpus
The 'cpus' field in struct trace_buffer became useless in commit8e7b58c27b("ring-buffer: Just update the subbuffers when changing their allocation order"). Remove it Link: https://patch.msgid.link/20260813131152.3589632-9-vdonnefort@google.com Fixes:8e7b58c27b("ring-buffer: Just update the subbuffers when changing their allocation order") Signed-off-by: Vincent Donnefort <vdonnefort@google.com> Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
This commit is contained in:
parent
472ac478b1
commit
d9b5e22bf2
|
|
@ -572,7 +572,6 @@ struct ring_buffer_per_cpu {
|
|||
|
||||
struct trace_buffer {
|
||||
unsigned flags;
|
||||
int cpus;
|
||||
atomic_t record_disabled;
|
||||
atomic_t resizing;
|
||||
cpumask_var_t cpumask;
|
||||
|
|
@ -2796,7 +2795,6 @@ static struct trace_buffer *alloc_buffer(unsigned long size, unsigned flags,
|
|||
init_irq_work(&buffer->irq_work.work, rb_wake_up_waiters);
|
||||
init_waitqueue_head(&buffer->irq_work.waiters);
|
||||
|
||||
buffer->cpus = nr_cpu_ids;
|
||||
|
||||
bsize = sizeof(void *) * nr_cpu_ids;
|
||||
buffer->buffers = kzalloc(ALIGN(bsize, cache_line_size()),
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user