Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

powerpc/eeh: Fix /proc/ppc64/eeh creation

Since commit 188917e183cf9ad0374b571006d0fc6d48a7f447, /proc/ppc64 is a
symlink to /proc/powerpc/. That means that creating /proc/ppc64/eeh will
end up with a unaccessible file, that is not listed under /proc/powerpc/
and, then, not listed under /proc/ppc64/.

Creating /proc/powerpc/eeh fixes that problem and maintain the
compatibility intended with the ppc64 symlink.

Signed-off-by: Thadeu Lima de Souza Cascardo <cascardo@linux.vnet.ibm.com>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Cc: <stable@kernel.org> [3.x]

authored by

Thadeu Lima de Souza Cascardo and committed by
Benjamin Herrenschmidt
8feaa434 cf01a404

+1 -1
+1 -1
arch/powerpc/platforms/pseries/eeh.c
··· 1338 1338 static int __init eeh_init_proc(void) 1339 1339 { 1340 1340 if (machine_is(pseries)) 1341 - proc_create("ppc64/eeh", 0, NULL, &proc_eeh_operations); 1341 + proc_create("powerpc/eeh", 0, NULL, &proc_eeh_operations); 1342 1342 return 0; 1343 1343 } 1344 1344 __initcall(eeh_init_proc);