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
commit df21d2f upstream.

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 <maddy@linux.vnet.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
  • Loading branch information
Madhavan Srinivasan authored and Greg Kroah-Hartman committed Jan 26, 2017
1 parent a5291c1 commit 6e65a4c
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 6e65a4c

Please sign in to comment.