Commit df21d2fa authored by Madhavan Srinivasan's avatar Madhavan Srinivasan Committed by Michael Ellerman

selftest/powerpc: Wrong PMC initialized in pmc56_overflow test

Test uses PMC2 to count the event. But PMC1 is being initialized.
Patch to fix it.

Fixes: 3752e453 ('selftests/powerpc: Add tests of PMU EBBs')
Signed-off-by: default avatarMadhavan Srinivasan <maddy@linux.vnet.ibm.com>
Signed-off-by: default avatarMichael Ellerman <mpe@ellerman.id.au>
parent 387bbc97
...@@ -66,7 +66,7 @@ int pmc56_overflow(void) ...@@ -66,7 +66,7 @@ int pmc56_overflow(void)
FAIL_IF(ebb_event_enable(&event)); FAIL_IF(ebb_event_enable(&event));
mtspr(SPRN_PMC1, pmc_sample_period(sample_period)); mtspr(SPRN_PMC2, pmc_sample_period(sample_period));
mtspr(SPRN_PMC5, 0); mtspr(SPRN_PMC5, 0);
mtspr(SPRN_PMC6, 0); mtspr(SPRN_PMC6, 0);
......
Markdown is supported
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