|
@@ -1517,7 +1517,6 @@ static struct trace_buffer_struct *trace_percpu_nmi_buffer;
|
|
|
static char *get_trace_buf(void)
|
|
|
{
|
|
|
struct trace_buffer_struct *percpu_buffer;
|
|
|
- struct trace_buffer_struct *buffer;
|
|
|
|
|
|
/*
|
|
|
* If we have allocated per cpu buffers, then we do not
|
|
@@ -1535,9 +1534,7 @@ static char *get_trace_buf(void)
|
|
|
if (!percpu_buffer)
|
|
|
return NULL;
|
|
|
|
|
|
- buffer = per_cpu_ptr(percpu_buffer, smp_processor_id());
|
|
|
-
|
|
|
- return buffer->buffer;
|
|
|
+ return this_cpu_ptr(&percpu_buffer->buffer[0]);
|
|
|
}
|
|
|
|
|
|
static int alloc_percpu_trace_buffer(void)
|