summaryrefslogtreecommitdiffstats
path: root/arch/x86
diff options
context:
space:
mode:
authorPeter Zijlstra <a.p.zijlstra@chello.nl>2010-09-16 19:17:24 +0200
committerIngo Molnar <mingo@elte.hu>2010-09-21 13:55:44 +0200
commit41945f6ccf1e86f87fddf6b32db9cf431c05fb54 (patch)
treecf64d47bfff06ff4560efcaa23a067fa99db34dd /arch/x86
parentpercpu: Add {get,put}_cpu_ptr (diff)
downloadlinux-41945f6ccf1e86f87fddf6b32db9cf431c05fb54.tar.xz
linux-41945f6ccf1e86f87fddf6b32db9cf431c05fb54.zip
perf: Avoid RCU vs preemption assumptions
The per-pmu per-cpu context patch converted things from get_cpu_var() to this_cpu_ptr(), but that only works if rcu_read_lock() actually disables preemption, and since there is no such guarantee, we need to fix that. Use the newly introduced {get,put}_cpu_ptr(). Signed-off-by: Peter Zijlstra <a.p.zijlstra@chello.nl> Cc: Tejun Heo <tj@kernel.org> LKML-Reference: <20100917093009.308453028@chello.nl> Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'arch/x86')
0 files changed, 0 insertions, 0 deletions