From: Keith Mannthey <kmannth@xxxxxxxxxx>Ok nice, but.... hotadd_enough_memory() is broken, it does weird things with nd->start and nd->end which haven't been assigned even values yet. Also, mysterious business with find_e820_area and last_area_end...These areas are not in e820...
Enable x86_64 srat.c to share code between both reserve and sparsemem based add memory
paths. Both paths need the hot-add area node locality infomration (nodes_add). This code refactors the code path to allow this.
Signed-off-by: Keith Mannthey<kmannth@xxxxxxxxxx>