Commit a95d0692 authored by Huacai Chen's avatar Huacai Chen Committed by Ralf Baechle
Browse files

MIPS: Reserve nosave data for hibernation

After commit 92923ca3

 ("mm: meminit: only set page reserved
in the memblock region"), the MIPS hibernation is broken. Because pages
in nosave data section should be "reserved", but currently they aren't
set to "reserved" at initialization. This patch makes hibernation work

Signed-off-by: default avatarHuacai Chen <>
Cc: Aurelien Jarno <>
Cc: Steven J . Hill <>
Cc: Fuxin Zhang <>
Cc: Zhangjin Wu <>

Signed-off-by: default avatarRalf Baechle <>
parent 54292850
......@@ -706,6 +706,9 @@ static void __init arch_mem_init(char **cmdline_p)
for_each_memblock(reserved, reg)
if (reg->size != 0)
reserve_bootmem(reg->base, reg->size, BOOTMEM_DEFAULT);
__pa_symbol(&__nosave_end)); /* Reserve for hibernation */
static void __init resource_init(void)
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment