Skip to content
Commit d2caa3ce authored by Tom Huynh's avatar Tom Huynh Committed by Scott Wood
Browse files

powerpc/perf: fix fsl_emb_pmu_start to write correct pmc value

PMCs on PowerPC increases towards 0x80000000 and triggers an overflow
interrupt when the msb is set to collect a sample. Therefore, to setup
for the next sample collection, pmu_start should set the pmc value to
0x80000000 - left instead of left which incorrectly delays the next
overflow interrupt. Same as commit 9a45a940

 ("powerpc/perf:
power_pmu_start restores incorrect values, breaking frequency events")
for book3s.

Signed-off-by: default avatarTom Huynh <tom.huynh@freescale.com>
Signed-off-by: default avatarScott Wood <scottwood@freescale.com>
parent 238cac16
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment