From: Maria Dimakopoulou Date: Mon, 17 Nov 2014 19:06:57 +0000 (+0100) Subject: perf/x86/intel: Add cross-HT counter exclusion infrastructure X-Git-Tag: omap-for-v4.1/fixes-rc1~156^2~17 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6f6539cad926f55d5eb6e79d05bbe99f0d54d56d;p=pandora-kernel.git perf/x86/intel: Add cross-HT counter exclusion infrastructure This patch adds a new shared_regs style structure to the per-cpu x86 state (cpuc). It is used to coordinate access between counters which must be used with exclusion across HyperThreads on Intel processors. This new struct is not needed on each PMU, thus is is allocated on demand. Signed-off-by: Maria Dimakopoulou [peterz: spinlock_t -> raw_spinlock_t] Signed-off-by: Peter Zijlstra (Intel) Reviewed-by: Stephane Eranian Cc: bp@alien8.de Cc: jolsa@redhat.com Cc: kan.liang@intel.com Link: http://lkml.kernel.org/r/1416251225-17721-6-git-send-email-eranian@google.com Signed-off-by: Ingo Molnar --- Reading git-diff-tree failed