浏览代码

[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>
Sonny Rao 19 年之前
父节点
当前提交
dcc42f483d
共有 1 个文件被更改,包括 0 次插入2 次删除
  1. 0 2
      arch/powerpc/platforms/pseries/setup.c

+ 0 - 2
arch/powerpc/platforms/pseries/setup.c

@@ -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);