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

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

Merge "perf: Change PMCR write to read-modify-write"

parents 6862b64e 9604564b
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -981,8 +981,8 @@ static void armv8pmu_reset(void *info)
	 * Initialize & Reset PMNC. Request overflow interrupt for
	 * 64 bit cycle counter but cheat in armv8pmu_write_counter().
	 */
	armv8pmu_pmcr_write(ARMV8_PMU_PMCR_P | ARMV8_PMU_PMCR_C |
			    ARMV8_PMU_PMCR_LC);
	armv8pmu_pmcr_write(armv8pmu_pmcr_read() | ARMV8_PMU_PMCR_P |
			ARMV8_PMU_PMCR_C | ARMV8_PMU_PMCR_LC);
}

static int __armv8_pmuv3_map_event(struct perf_event *event,