From: Peter Zijlstra Date: Thu, 21 May 2015 08:57:17 +0000 (+0200) Subject: perf/x86: Improve HT workaround GP counter constraint X-Git-Tag: omap-for-v4.2/wakeirq-drivers-v2^2~2^2~15^2~4 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=cc1790cf541553263bda024295d7600c7cd7c45d;p=pandora-kernel.git perf/x86: Improve HT workaround GP counter constraint The (SNB/IVB/HSW) HT bug only affects events that can be programmed onto GP counters, therefore we should only limit the number of GP counters that can be used per cpu -- iow we should not constrain the FP counters. Furthermore, we should only enfore such a limit when there are in fact exclusive events being scheduled on either sibling. Reported-by: Vince Weaver Signed-off-by: Peter Zijlstra (Intel) Cc: Linus Torvalds Cc: Peter Zijlstra Cc: Thomas Gleixner [ Fixed build fail for the !CONFIG_CPU_SUP_INTEL case. ] Signed-off-by: Ingo Molnar --- Reading git-diff-tree failed