mirror of
https://github.com/fail0verflow/switch-linux.git
synced 2025-05-04 02:34:21 -04:00
[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: Paul Mackerras <paulus@samba.org>
This commit is contained in:
parent
9f737633e6
commit
dcc42f483d
1 changed files with 0 additions and 2 deletions
|
@ -213,8 +213,6 @@ static void pseries_lpar_enable_pmcs(void)
|
||||||
{
|
{
|
||||||
unsigned long set, reset;
|
unsigned long set, reset;
|
||||||
|
|
||||||
power4_enable_pmcs();
|
|
||||||
|
|
||||||
set = 1UL << 63;
|
set = 1UL << 63;
|
||||||
reset = 0;
|
reset = 0;
|
||||||
plpar_hcall_norets(H_PERFMON, set, reset);
|
plpar_hcall_norets(H_PERFMON, set, reset);
|
||||||
|
|
Loading…
Add table
Reference in a new issue