]> git.itanic.dy.fi Git - linux-stable/commit
MIPS: Reserve nosave data for hibernation
authorHuacai Chen <chenhc@lemote.com>
Thu, 17 Mar 2016 12:37:10 +0000 (20:37 +0800)
committerSasha Levin <sasha.levin@oracle.com>
Tue, 12 Jul 2016 12:48:19 +0000 (08:48 -0400)
commit1dd0964204277108e3e06e7df4c1f06a79d55093
tree344703af985587578a871fa942edde0e2136162d
parent1e694169c9b1a84eec5ca3b631c8fc14e89cd670
MIPS: Reserve nosave data for hibernation

[ Upstream commit a95d069204e178f18476f5499abab0d0d9cbc32c ]

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
Cc: stable@vger.kernel.org
Patchwork: https://patchwork.linux-mips.org/patch/12888/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Signed-off-by: Sasha Levin <sasha.levin@oracle.com>
arch/mips/kernel/setup.c