Added number of PMRs to cpu_specs
Paul,
Andy F. is adding 'proper' oprofile support to PPC32. I was wondering if you had any issue if we added the # of PMRs a cpu has to the cpu_specs table. I figured it better that we keep all such info in a single place, rather than reproducing PVR based checks in multiple places.
Note, PPC64 currently does a PVR based check in arch/ppc64/common.c. I would recommend that model->num_counters come from cpu_specs and oprof_ppc64_ops.cpu_type be composed from cpu_specs.cpu_name.
- kumar
Quoted 1 line · Kumar Gala
..... I figured it better that we keep all such info in a single place, rather than reproducing PVR based checks in multiple places.
I think if a PVR test causes lots of variations to be tested, we should add the information to the cpu tables. If a PVR test is trivial (like is it a 601), then we just read the PVR and test it.
-- Dan