Skip to content

Commit

Permalink
selftest/powerpc: Wrong PMC initialized in pmc56_overflow test
Browse files Browse the repository at this point in the history
Test uses PMC2 to count the event. But PMC1 is being initialized.
Patch to fix it.

Fixes: 3752e45 ('selftests/powerpc: Add tests of PMU EBBs')
Signed-off-by: Madhavan Srinivasan <[email protected]>
Signed-off-by: Michael Ellerman <[email protected]>
  • Loading branch information
Madhavan Srinivasan authored and mpe committed Jan 18, 2017
1 parent 387bbc9 commit df21d2f
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ int pmc56_overflow(void)

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_PMC6, 0);

Expand Down

0 comments on commit df21d2f

Please sign in to comment.