Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit dcc42f48 authored by Sonny Rao's avatar Sonny Rao Committed by Paul Mackerras
Browse files

[POWERPC] fix PMU initialization on pseries lpar



We should not be calling power4_enable_pmcs() in
pseries_lpar_enable_pmcs(); just doing the hypercall is sufficient.
Prior to 2.6.15 we did not call power4_enable_pmcs() for an lpar.

power4_enable_pmcs() tries to read the hid0 register which is no
longer legal for an lpar in newer Power processors.

Signed-off-by: default avatarPaul Mackerras <paulus@samba.org>
parent 9f737633
Loading
Loading
Loading
Loading
+0 −2
Original line number Diff line number Diff line
@@ -213,8 +213,6 @@ static void pseries_lpar_enable_pmcs(void)
{
	unsigned long set, reset;

	power4_enable_pmcs();

	set = 1UL << 63;
	reset = 0;
	plpar_hcall_norets(H_PERFMON, set, reset);