Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 5cfb340b authored by qctecmdr's avatar qctecmdr Committed by Gerrit - the friendly Code Review server
Browse files

Merge "perf: llcc: Fix the mask to clear and disable the LLCC PMU"

parents 8f52e021 32b40b1c
Loading
Loading
Loading
Loading
+3 −1
Original line number Original line Diff line number Diff line
@@ -63,7 +63,7 @@ static void mon_disable(struct llcc_pmu *llccpmu, int cpu)
		break;
		break;
	case LLCC_PMU_VER2:
	case LLCC_PMU_VER2:
		reg = readl_relaxed(MON_CFG(llccpmu));
		reg = readl_relaxed(MON_CFG(llccpmu));
		reg &= (DISABLE << cpu);
		reg &= ~(ENABLE << cpu);
		writel_relaxed(reg, MON_CFG(llccpmu));
		writel_relaxed(reg, MON_CFG(llccpmu));
		break;
		break;
	}
	}
@@ -87,6 +87,8 @@ static void mon_clear(struct llcc_pmu *llccpmu, int cpu)
		reg = readl_relaxed(MON_CFG(llccpmu));
		reg = readl_relaxed(MON_CFG(llccpmu));
		reg |= (ENABLE << clear_bit);
		reg |= (ENABLE << clear_bit);
		writel_relaxed(reg, MON_CFG(llccpmu));
		writel_relaxed(reg, MON_CFG(llccpmu));
		reg &= ~(ENABLE << clear_bit);
		writel_relaxed(reg, MON_CFG(llccpmu));
		break;
		break;
	}
	}
}
}