From: Peter Zijlstra Date: Thu, 16 Sep 2010 17:17:24 +0000 (+0200) Subject: perf: Avoid RCU vs preemption assumptions X-Git-Tag: v2.6.37-rc1~214^2~36 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=41945f6ccf1e86f87fddf6b32db9cf431c05fb54;p=pandora-kernel.git 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 Cc: Tejun Heo LKML-Reference: <20100917093009.308453028@chello.nl> Signed-off-by: Ingo Molnar --- Reading git-diff-tree failed