mirror of
https://github.com/hardkernel/linux.git
synced 2026-03-25 03:50:24 +09:00
selftest/powerpc: Wrong PMC initialized in pmc56_overflow test
commitdf21d2fa73upstream. Test uses PMC2 to count the event. But PMC1 is being initialized. Patch to fix it. Fixes:3752e453f6('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>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
f37b7a3004
commit
fa555d021d
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user