[PATCH] powerpc/eeh: Add procfs entry for PowerNV

Gavin Shan shangw at linux.vnet.ibm.com
Wed Aug 7 12:34:40 EST 2013


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 at linux.vnet.ibm.com>

Acked-by: Gavin Shan <shangw at 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



More information about the Linuxppc-dev mailing list