aboutsummaryrefslogtreecommitdiffstats
path: root/arch/x86/oprofile/op_model_ppro.c
diff options
context:
space:
mode:
authorRobert Richter <robert.richter@amd.com>2009-05-14 11:10:52 -0400
committerRobert Richter <robert.richter@amd.com>2009-06-10 16:07:35 -0400
commit849620fab413355eff48232eac5a8c53c57615c5 (patch)
tree4aec13fcc0e1bb6a3dd1e36349473c7fe3477f86 /arch/x86/oprofile/op_model_ppro.c
parent0886751c5d8b19fcee2e65d34ae21c9111e652a9 (diff)
Revert "oprofile: discover counters for op ppro too"
This reverts commit 59512900baab03c5629f2ff5efad1d5d4e682ece. arch_perfmon_setup_counters() is actually never called for ppro, so there is no code that changes the numbers in op_ppro_spec. The patch as it is has no effect. Cc: Andi Kleen <ak@linux.intel.com> Signed-off-by: Robert Richter <robert.richter@amd.com>
Diffstat (limited to 'arch/x86/oprofile/op_model_ppro.c')
-rw-r--r--arch/x86/oprofile/op_model_ppro.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/arch/x86/oprofile/op_model_ppro.c b/arch/x86/oprofile/op_model_ppro.c
index 10131fbdaada..2a123990a84c 100644
--- a/arch/x86/oprofile/op_model_ppro.c
+++ b/arch/x86/oprofile/op_model_ppro.c
@@ -213,9 +213,9 @@ static void ppro_shutdown(struct op_msrs const * const msrs)
213} 213}
214 214
215 215
216struct op_x86_model_spec op_ppro_spec = { 216struct op_x86_model_spec const op_ppro_spec = {
217 .num_counters = 2, /* can be overriden */ 217 .num_counters = 2,
218 .num_controls = 2, /* dito */ 218 .num_controls = 2,
219 .fill_in_addresses = &ppro_fill_in_addresses, 219 .fill_in_addresses = &ppro_fill_in_addresses,
220 .setup_ctrs = &ppro_setup_ctrs, 220 .setup_ctrs = &ppro_setup_ctrs,
221 .check_ctrs = &ppro_check_ctrs, 221 .check_ctrs = &ppro_check_ctrs,
@@ -251,8 +251,6 @@ void arch_perfmon_setup_counters(void)
251 251
252 op_arch_perfmon_spec.num_counters = num_counters; 252 op_arch_perfmon_spec.num_counters = num_counters;
253 op_arch_perfmon_spec.num_controls = num_counters; 253 op_arch_perfmon_spec.num_controls = num_counters;
254 op_ppro_spec.num_counters = num_counters;
255 op_ppro_spec.num_controls = num_counters;
256} 254}
257 255
258struct op_x86_model_spec op_arch_perfmon_spec = { 256struct op_x86_model_spec op_arch_perfmon_spec = {