• Nathan Fontenot's avatar
    memory hotplug: Update phys_index to [start|end]_section_nr · d3360164
    Nathan Fontenot authored
    Update the 'phys_index' property of a the memory_block struct to be
    called start_section_nr, and add a end_section_nr property.  The
    data tracked here is the same but the updated naming is more in line
    with what is stored here, namely the first and last section number
    that the memory block spans.
    
    The names presented to userspace remain the same, phys_index for
    start_section_nr and end_phys_index for end_section_nr, to avoid breaking
    anything in userspace.
    
    This also updates the node sysfs code to be aware of the new capability for
    a memory block to contain multiple memory sections and be aware of the memory
    block structure name changes (start_section_nr).  This requires an additional
    parameter to unregister_mem_sect_under_nodes so that we know which memory
    section of the memory block to unregister.
    Signed-off-by: default avatarNathan Fontenot <nfont@austin.ibm.com>
    Reviewed-by: default avatarRobin Holt <holt@sgi.com>
    Reviewed-by: default avatarKAMEZAWA Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com>
    Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
    d3360164
memory.c 16.3 KB