/* Enable/disable the entire performance monitoring unit. When we enable the PMU, all pending writes to counters get committed.  */
void cbe_enable_pm(u32 cpu)
/* Enable/disable the entire performance monitoring unit. When we enable the PMU, all pending writes to counters get committed.  */
void cbe_enable_pm(u32 cpu)
{
	struct cbe_pmd_shadow_regs *shadow_regs;
	u32 pm_ctrl;
	shadow_regs = cbe_get_cpu_pmd_shadow_regs(cpu);
	shadow_regs->counter_value_in_latch = 0;
	pm_ctrl = cbe_read_pm(cpu, pm_control) | CBE_PM_ENABLE_PERF_MON;
	cbe_write_pm(cpu, pm_control, pm_ctrl);
}