From: Peter Zijlstra Date: Wed, 5 Feb 2014 10:19:56 +0000 (+0100) Subject: perf/x86: Fix Userspace RDPMC switch X-Git-Tag: v3.14-rc4~11^2~4 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0e9f2204cfa6d79abe3e525ddf7c4ab5792cc751;p=pandora-kernel.git perf/x86: Fix Userspace RDPMC switch The current code forgets to change the CR4 state on the current CPU. Use on_each_cpu() instead of smp_call_function(). Reported-by: Mark Davies Suggested-by: Mark Davies Signed-off-by: Peter Zijlstra Cc: fweisbec@gmail.com Link: http://lkml.kernel.org/n/tip-69efsat90ibhnd577zy3z9gh@git.kernel.org Signed-off-by: Ingo Molnar --- Reading git-diff-tree failed