From: Stephane Eranian Date: Mon, 6 Jun 2011 14:57:03 +0000 (+0200) Subject: perf_events: Update Intel extra regs shared constraints management X-Git-Tag: v3.1-rc1~299^2~27 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=efc9f05df2dd171280dcb736a4d973ffefd5508e;p=pandora-kernel.git perf_events: Update Intel extra regs shared constraints management This patch improves the code managing the extra shared registers used for offcore_response events on Intel Nehalem/Westmere. The idea is to use static allocation instead of dynamic allocation. This simplifies greatly the get and put constraint routines for those events. The patch also renames per_core to shared_regs because the same data structure gets used whether or not HT is on. When HT is off, those events still need to coordination because they use a extra MSR that has to be shared within an event group. Signed-off-by: Stephane Eranian Signed-off-by: Peter Zijlstra Link: http://lkml.kernel.org/r/20110606145703.GA7258@quad Signed-off-by: Ingo Molnar --- Reading git-diff-tree failed