diff options
author | Aruna Balakrishnaiah <aruna@linux.vnet.ibm.com> | 2013-06-05 14:51:59 -0400 |
---|---|---|
committer | Benjamin Herrenschmidt <benh@kernel.crashing.org> | 2013-06-20 03:04:56 -0400 |
commit | edf38465a32c2820350da45a2231d2c53ad2d3c0 (patch) | |
tree | 3f16ecd47afc7f0c290e4cd03fb250615dcf9521 | |
parent | 69020eea973d95766e905ee0ce7773e0027377a3 (diff) |
powerpc/pseries: Distinguish between a os-partition and non-os partition
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>
-rw-r--r-- | arch/powerpc/platforms/pseries/nvram.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/arch/powerpc/platforms/pseries/nvram.c b/arch/powerpc/platforms/pseries/nvram.c index 78d72f0175ad..714ed8ac7d59 100644 --- a/arch/powerpc/platforms/pseries/nvram.c +++ b/arch/powerpc/platforms/pseries/nvram.c | |||
@@ -53,20 +53,23 @@ struct nvram_os_partition { | |||
53 | int min_size; /* minimum acceptable size (0 means req_size) */ | 53 | int min_size; /* minimum acceptable size (0 means req_size) */ |
54 | long size; /* size of data portion (excluding err_log_info) */ | 54 | long size; /* size of data portion (excluding err_log_info) */ |
55 | long index; /* offset of data portion of partition */ | 55 | long index; /* offset of data portion of partition */ |
56 | bool os_partition; /* partition initialized by OS, not FW */ | ||
56 | }; | 57 | }; |
57 | 58 | ||
58 | static struct nvram_os_partition rtas_log_partition = { | 59 | static struct nvram_os_partition rtas_log_partition = { |
59 | .name = "ibm,rtas-log", | 60 | .name = "ibm,rtas-log", |
60 | .req_size = 2079, | 61 | .req_size = 2079, |
61 | .min_size = 1055, | 62 | .min_size = 1055, |
62 | .index = -1 | 63 | .index = -1, |
64 | .os_partition = true | ||
63 | }; | 65 | }; |
64 | 66 | ||
65 | static struct nvram_os_partition oops_log_partition = { | 67 | static struct nvram_os_partition oops_log_partition = { |
66 | .name = "lnx,oops-log", | 68 | .name = "lnx,oops-log", |
67 | .req_size = 4000, | 69 | .req_size = 4000, |
68 | .min_size = 2000, | 70 | .min_size = 2000, |
69 | .index = -1 | 71 | .index = -1, |
72 | .os_partition = true | ||
70 | }; | 73 | }; |
71 | 74 | ||
72 | static const char *pseries_nvram_os_partitions[] = { | 75 | static const char *pseries_nvram_os_partitions[] = { |