From: Robert Richter Date: Wed, 20 Jun 2012 18:46:35 +0000 (+0200) Subject: perf/x86/amd: Unify AMD's generic and family 15h pmus X-Git-Tag: v3.6-rc1~167^2~15 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b1dc3c4820428ac6216537416b2fcd140fdc52e5;p=pandora-kernel.git perf/x86/amd: Unify AMD's generic and family 15h pmus There is no need for keeping separate pmu structs. We can enable amd_{get,put}_event_constraints() functions also for family 15h event. The advantage is that there is only a single pmu struct for all AMD cpus. This patch introduces functions to setup the pmu to enabe core performance counters or counter constraints. Also, cpuid checks are used instead of family checks where possible. Thus, it enables the code independently of cpu families if the feature flag is set. Signed-off-by: Robert Richter Signed-off-by: Peter Zijlstra Link: http://lkml.kernel.org/r/1340217996-2254-4-git-send-email-robert.richter@amd.com Signed-off-by: Ingo Molnar --- Reading git-diff-tree failed