powerpc/pseries: Read common partition via pstore
This patch exploits pstore subsystem to read details of common partition in NVRAM to a separate file in /dev/pstore. For instance, common partition details will be stored in a file named [common-nvram-6]. Signed-off-by: Aruna Balakrishnaiah <aruna@linux.vnet.ibm.com> Reviewed-by: Jim Keniston <jkenisto@us.ibm.com> Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
This commit is contained in:

committed by
Benjamin Herrenschmidt

parent
f33f748c96
commit
a5e4797b0f
@@ -330,6 +330,9 @@ int pstore_mkfile(enum pstore_type_id type, char *psname, u64 id, int count,
|
||||
case PSTORE_TYPE_PPC_OF:
|
||||
sprintf(name, "powerpc-ofw-%s-%lld", psname, id);
|
||||
break;
|
||||
case PSTORE_TYPE_PPC_COMMON:
|
||||
sprintf(name, "powerpc-common-%s-%lld", psname, id);
|
||||
break;
|
||||
case PSTORE_TYPE_UNKNOWN:
|
||||
sprintf(name, "unknown-%s-%lld", psname, id);
|
||||
break;
|
||||
|
Reference in New Issue
Block a user