MIPS: Hibernate: flush TLB entries earlier
authorHuacai Chen <chenhc@lemote.com>
Sun, 29 Mar 2015 02:54:05 +0000 (10:54 +0800)
committerRalf Baechle <ralf@linux-mips.org>
Fri, 10 Apr 2015 13:41:52 +0000 (15:41 +0200)
commita843d00d038b11267279e3b5388222320f9ddc1d
tree130a3b0c560f838bf77ce9917c6563b78e2122ce
parent90db024f140d0d6ad960cc5f090e3c8ed890ca55
MIPS: Hibernate: flush TLB entries earlier

We found that TLB mismatch not only happens after kernel resume, but
also happens during snapshot restore. So move it to the beginning of
swsusp_arch_suspend().

Signed-off-by: Huacai Chen <chenhc@lemote.com>
Cc: <stable@vger.kernel.org>
Cc: Steven J. Hill <Steven.Hill@imgtec.com>
Cc: linux-mips@linux-mips.org
Cc: Fuxin Zhang <zhangfx@lemote.com>
Cc: Zhangjin Wu <wuzhangjin@gmail.com>
Cc: stable@vger.kernel.org
Patchwork: https://patchwork.linux-mips.org/patch/9621/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
arch/mips/power/hibernate.S