diff mbox

powerpc/eeh: Add procfs entry for PowerNV

Message ID 1375842314-26555-1-git-send-email-qiudayu@linux.vnet.ibm.com (mailing list archive)
State Accepted, archived
Commit 144136dd7a25a0ca4d86685f872168502f91f337
Delegated to: Benjamin Herrenschmidt
Headers show

Commit Message

Mike Qiu Aug. 7, 2013, 2:25 a.m. UTC
The procfs entry for global statistics has been missed on PowerNV
platform and the patch is going to add that.

Signed-off-by: Mike Qiu <qiudayu@linux.vnet.ibm.com>
---
 arch/powerpc/kernel/eeh.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Gavin Shan Aug. 7, 2013, 2:34 a.m. UTC | #1
On Tue, Aug 06, 2013 at 10:25:14PM -0400, Mike Qiu wrote:
>The procfs entry for global statistics has been missed on PowerNV
>platform and the patch is going to add that.
>
>Signed-off-by: Mike Qiu <qiudayu@linux.vnet.ibm.com>

Acked-by: Gavin Shan <shangw@linux.vnet.ibm.com>

>---
> arch/powerpc/kernel/eeh.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
>diff --git a/arch/powerpc/kernel/eeh.c b/arch/powerpc/kernel/eeh.c
>index 39954fe..0e12bb1 100644
>--- a/arch/powerpc/kernel/eeh.c
>+++ b/arch/powerpc/kernel/eeh.c
>@@ -1063,7 +1063,7 @@ static const struct file_operations proc_eeh_operations = {
>
> static int __init eeh_init_proc(void)
> {
>-	if (machine_is(pseries))
>+	if (machine_is(pseries) || machine_is(powernv))
> 		proc_create("powerpc/eeh", 0, NULL, &proc_eeh_operations);
> 	return 0;
> }

Thanks,
Gavin
diff mbox

Patch

diff --git a/arch/powerpc/kernel/eeh.c b/arch/powerpc/kernel/eeh.c
index 39954fe..0e12bb1 100644
--- a/arch/powerpc/kernel/eeh.c
+++ b/arch/powerpc/kernel/eeh.c
@@ -1063,7 +1063,7 @@  static const struct file_operations proc_eeh_operations = {
 
 static int __init eeh_init_proc(void)
 {
-	if (machine_is(pseries))
+	if (machine_is(pseries) || machine_is(powernv))
 		proc_create("powerpc/eeh", 0, NULL, &proc_eeh_operations);
 	return 0;
 }