mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-02 17:26:42 +09:00
powerpc/eeh: Fix /proc/ppc64/eeh creation
commit8feaa43494upstream. Since commit188917e183, /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> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
7476139614
commit
71b1a9d35d
@@ -1338,7 +1338,7 @@ static const struct file_operations proc_eeh_operations = {
|
||||
static int __init eeh_init_proc(void)
|
||||
{
|
||||
if (machine_is(pseries))
|
||||
proc_create("ppc64/eeh", 0, NULL, &proc_eeh_operations);
|
||||
proc_create("powerpc/eeh", 0, NULL, &proc_eeh_operations);
|
||||
return 0;
|
||||
}
|
||||
__initcall(eeh_init_proc);
|
||||
|
||||
Reference in New Issue
Block a user