aboutsummaryrefslogtreecommitdiffstats
path: root/kernel
diff options
context:
space:
mode:
Diffstat (limited to 'kernel')
-rw-r--r--kernel/perf_counter.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/perf_counter.c b/kernel/perf_counter.c
index 195712e20d07..a5d3e2aedd2f 100644
--- a/kernel/perf_counter.c
+++ b/kernel/perf_counter.c
@@ -2234,7 +2234,7 @@ static int perf_output_begin(struct perf_output_handle *handle,
2234 perf_output_lock(handle); 2234 perf_output_lock(handle);
2235 2235
2236 do { 2236 do {
2237 offset = head = atomic_read(&data->head); 2237 offset = head = atomic_long_read(&data->head);
2238 head += size; 2238 head += size;
2239 } while (atomic_long_cmpxchg(&data->head, offset, head) != offset); 2239 } while (atomic_long_cmpxchg(&data->head, offset, head) != offset);
2240 2240