]> git.proxmox.com Git - mirror_ubuntu-zesty-kernel.git/commit
MIPS: Reserve nosave data for hibernation
authorHuacai Chen <chenhc@lemote.com>
Thu, 17 Mar 2016 12:37:10 +0000 (20:37 +0800)
committerKamal Mostafa <kamal@canonical.com>
Fri, 10 Jun 2016 13:32:25 +0000 (06:32 -0700)
commit75383a009849cdb47433be799ef2201bed609b5a
tree99526c56e4a3a23667e8464771d13b2b3f47ba3c
parent1cba0c02a0848ebb897eab4a84ce9201e09bcaec
MIPS: Reserve nosave data for hibernation

BugLink: http://bugs.launchpad.net/bugs/1590455
commit a95d069204e178f18476f5499abab0d0d9cbc32c upstream.

After commit 92923ca3aacef63c92d ("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
again.

Signed-off-by: Huacai Chen <chenhc@lemote.com>
Cc: Aurelien Jarno <aurelien@aurel32.net>
Cc: Steven J . Hill <sjhill@realitydiluted.com>
Cc: Fuxin Zhang <zhangfx@lemote.com>
Cc: Zhangjin Wu <wuzhangjin@gmail.com>
Cc: linux-mips@linux-mips.org
Patchwork: https://patchwork.linux-mips.org/patch/12888/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Tim Gardner <tim.gardner@canonical.com>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
arch/mips/kernel/setup.c