/* ps3_disable_pm - Disable the entire performance monitoring unit.  */
void ps3_disable_pm(u32 cpu)
/* ps3_disable_pm - Disable the entire performance monitoring unit.  */
void ps3_disable_pm(u32 cpu)
{
	int result;
	u64 tmp;
	ps3_set_bookmark(get_tb() | PS3_PM_BOOKMARK_STOP);
	result = lv1_stop_lpm(lpm_priv->lpm_id, &tmp);
	if (result) {
		if(result != LV1_WRONG_STATE)
			dev_err(sbd_core(), "%s:%u: lv1_stop_lpm failed: %s\n",
				__func__, __LINE__, ps3_result(result));
		return;
	}
	lpm_priv->tb_count = tmp;
	dev_dbg(sbd_core(), "%s:%u: tb_count %llu (%llxh)\n", __func__, __LINE__,
		lpm_priv->tb_count, lpm_priv->tb_count);
}