Skip to content

Commit

Permalink
[POWERPC] fix PMU initialization on pseries lpar
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Sonny Rao authored and Paul Mackerras committed Aug 8, 2006
1 parent 9f73763 commit dcc42f4
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions arch/powerpc/platforms/pseries/setup.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit dcc42f4

Please sign in to comment.