powerpc/pseries: Distinguish between a os-partition and non-os partition
authorAruna Balakrishnaiah <aruna@linux.vnet.ibm.com>
Wed, 5 Jun 2013 18:51:59 +0000 (00:21 +0530)
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>
Thu, 20 Jun 2013 07:04:56 +0000 (17:04 +1000)
Introduce os_partition member in nvram_os_partition structure to identify
if the partition is an os partition or not. This will be useful to handle
non-os partitions of-config and common.

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>
arch/powerpc/platforms/pseries/nvram.c

index 78d72f0175adbcdcf8e353473c5f6e59292bc55c..714ed8ac7d59a79064a59cd5ff47d8ff4912ed71 100644 (file)
@@ -53,20 +53,23 @@ struct nvram_os_partition {
        int min_size;   /* minimum acceptable size (0 means req_size) */
        long size;      /* size of data portion (excluding err_log_info) */
        long index;     /* offset of data portion of partition */
+       bool os_partition; /* partition initialized by OS, not FW */
 };
 
 static struct nvram_os_partition rtas_log_partition = {
        .name = "ibm,rtas-log",
        .req_size = 2079,
        .min_size = 1055,
-       .index = -1
+       .index = -1,
+       .os_partition = true
 };
 
 static struct nvram_os_partition oops_log_partition = {
        .name = "lnx,oops-log",
        .req_size = 4000,
        .min_size = 2000,
-       .index = -1
+       .index = -1,
+       .os_partition = true
 };
 
 static const char *pseries_nvram_os_partitions[] = {