mirror of
https://github.com/torvalds/linux.git
synced 2024-11-08 05:01:48 +00:00
b1dc3c4820
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 <robert.richter@amd.com> Signed-off-by: Peter Zijlstra <a.p.zijlstra@chello.nl> Link: http://lkml.kernel.org/r/1340217996-2254-4-git-send-email-robert.richter@amd.com Signed-off-by: Ingo Molnar <mingo@kernel.org> |
||
---|---|---|
.. | ||
backtrace.c | ||
init.c | ||
Makefile | ||
nmi_int.c | ||
op_counter.h | ||
op_model_amd.c | ||
op_model_p4.c | ||
op_model_ppro.c | ||
op_x86_model.h |