lkml.org 
[lkml]   [2013]   [Apr]   [25]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    Subject[PATCH v3 6/8] powerpc/pseries: Distinguish between a os-partition and non-os partition
    From
    Date
    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>
    ---
    arch/powerpc/platforms/pseries/nvram.c | 7 +++++--
    1 file changed, 5 insertions(+), 2 deletions(-)

    diff --git a/arch/powerpc/platforms/pseries/nvram.c b/arch/powerpc/platforms/pseries/nvram.c
    index 78d72f0..714ed8a 100644
    --- a/arch/powerpc/platforms/pseries/nvram.c
    +++ b/arch/powerpc/platforms/pseries/nvram.c
    @@ -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[] = {


    \
     
     \ /
      Last update: 2013-04-25 13:01    [W:3.272 / U:0.092 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site