/* Get/set the size of a physical counter to either 16 or 32 bits.  */
u32 cbe_get_ctr_size(u32 cpu, u32 phys_ctr)
/* Get/set the size of a physical counter to either 16 or 32 bits.  */
u32 cbe_get_ctr_size(u32 cpu, u32 phys_ctr)
{
	u32 pm_ctrl, size = 0;
	if (phys_ctr < NR_PHYS_CTRS) {
		pm_ctrl = cbe_read_pm(cpu, pm_control);
		size = (pm_ctrl & CBE_PM_16BIT_CTR(phys_ctr)) ? 16 : 32;
	}
	return size;
}