Skip to contentSkip to conversation

Added number of PMRs to cpu_specs

DISCUSSION Kumar Gala 2 participants 2 messages Nov 1, 2004

lore
Share & tools
lore

Kumar Gala

author
#0 lore raw

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

#1 lore raw
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