From patchwork Tue Dec 1 06:55:42 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: [2/2] Loongson: disable FLATMEM Date: Tue, 01 Dec 2009 05:55:42 -0000 From: Wu Zhangjin X-Patchwork-Id: 737 Message-Id: <1259650542-31922-1-git-send-email-wuzhangjin@gmail.com> To: Ralf Baechle Cc: linux-mips@linux-mips.org, zhangfx@lemote.com, Wu Zhangjin From: Wu Zhangjin With FLATMEM, The STD(Hibernation) for Loongson will fail, and there are also some other problems(break the files) when using NFS or CIFS(samba). And as the config help of SPARSEMEM says: "This option provides some potential performance benefits, along with decreased code complexity." So, to avoid the potential problems of FLATMEM, we disable FLATMEM directly and use SPARSEMEM instead. Relative Email thread: http://groups.google.com/group/loongson-dev/browse_thread/thread/b6b65890ec2b0f24/feb43e5aa7f55d9b?show_docid=feb43e5aa7f55d9b Reported-by: Tatu Kilappa Signed-off-by: Wu Zhangjin --- arch/mips/Kconfig | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/arch/mips/Kconfig b/arch/mips/Kconfig index 8bf36d2..0be245d 100644 --- a/arch/mips/Kconfig +++ b/arch/mips/Kconfig @@ -1835,7 +1835,7 @@ config SYS_SUPPORTS_SMARTMIPS config ARCH_FLATMEM_ENABLE def_bool y - depends on !NUMA + depends on !NUMA && !CPU_LOONGSON2 config ARCH_DISCONTIGMEM_ENABLE bool