From: Robert Richter Date: Wed, 29 Apr 2009 10:47:02 +0000 (+0200) Subject: perf_counter, x86: protect per-cpu variables with compile barriers only X-Git-Tag: v2.6.31-rc1~383^2~350 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=527e26af3741a2168986d8b82653ffe173891324;p=pandora-kernel.git perf_counter, x86: protect per-cpu variables with compile barriers only Per-cpu variables needn't to be protected with cpu barriers (smp_wmb()). Protection is only needed for preemption on the same cpu (rescheduling or the nmi handler). This can be done using a compiler barrier only. [ Impact: micro-optimization ] Signed-off-by: Robert Richter Cc: Paul Mackerras Acked-by: Peter Zijlstra LKML-Reference: <1241002046-8832-6-git-send-email-robert.richter@amd.com> Signed-off-by: Ingo Molnar --- Reading git-diff-tree failed