mirror of
https://github.com/edk2-porting/linux-next.git
synced 2025-01-19 11:04:00 +08:00
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: 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>
This commit is contained in:
parent
387bbc974f
commit
df21d2fa73
@ -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);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user