Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 349844
b: refs/heads/master
c: d8a0349
h: refs/heads/master
v: v3
  • Loading branch information
Shan Wei authored and Steven Rostedt committed Jan 21, 2013
1 parent cb17c00 commit b8ff654
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 6 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 771e03842a9e98a1c2013ca1ed8bb2793488f3e5
refs/heads/master: d8a0349c0cea477322c66ea9362f10c62fad5f62
2 changes: 1 addition & 1 deletion trunk/kernel/trace/blktrace.c
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ void __trace_note_message(struct blk_trace *bt, const char *fmt, ...)
return;

local_irq_save(flags);
buf = per_cpu_ptr(bt->msg_data, smp_processor_id());
buf = this_cpu_ptr(bt->msg_data);
va_start(args, fmt);
n = vscnprintf(buf, BLK_TN_MAX_MSG, fmt, args);
va_end(args);
Expand Down
5 changes: 1 addition & 4 deletions trunk/kernel/trace/trace.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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)
Expand Down

0 comments on commit b8ff654

Please sign in to comment.