diff options
Diffstat (limited to 'drivers/oprofile/cpu_buffer.c')
-rw-r--r-- | drivers/oprofile/cpu_buffer.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/oprofile/cpu_buffer.c b/drivers/oprofile/cpu_buffer.c index 2c4d54187b90..7e5e650e409f 100644 --- a/drivers/oprofile/cpu_buffer.c +++ b/drivers/oprofile/cpu_buffer.c | |||
@@ -168,7 +168,7 @@ static inline void | |||
168 | add_sample(struct oprofile_cpu_buffer *cpu_buf, | 168 | add_sample(struct oprofile_cpu_buffer *cpu_buf, |
169 | unsigned long pc, unsigned long event) | 169 | unsigned long pc, unsigned long event) |
170 | { | 170 | { |
171 | struct op_sample *entry = &cpu_buf->buffer[cpu_buf->head_pos]; | 171 | struct op_sample *entry = cpu_buffer_write_entry(cpu_buf); |
172 | entry->eip = pc; | 172 | entry->eip = pc; |
173 | entry->event = event; | 173 | entry->event = event; |
174 | increment_head(cpu_buf); | 174 | increment_head(cpu_buf); |