From: Andi Kleen Date: Fri, 20 Mar 2015 17:11:24 +0000 (-0700) Subject: perf/x86/intel: Avoid rewriting DEBUGCTL with the same value for LBRs X-Git-Tag: omap-for-v4.1/fixes-rc1~156^2~5 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=cd1f11de69226cc7ce7e7f22bdab9010103ddaa6;p=pandora-kernel.git perf/x86/intel: Avoid rewriting DEBUGCTL with the same value for LBRs perf with LBRs on has a tendency to rewrite the DEBUGCTL MSR with the same value. Add a little optimization to skip the unnecessary write. Signed-off-by: Andi Kleen Signed-off-by: Peter Zijlstra (Intel) Cc: eranian@google.com Link: http://lkml.kernel.org/r/1426871484-21285-2-git-send-email-andi@firstfloor.org Signed-off-by: Ingo Molnar --- Reading git-diff-tree failed