Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit f133f22d authored by Wu Zhangjin's avatar Wu Zhangjin Committed by Ralf Baechle
Browse files

MIPS: Loongson: Switch from flatmem to sparsemem

With flatmem hibernation for Loongson will fail, and there are also some
other problems such as broken files when using NFS or CIFS / Samba.

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.

Related email thread:

http://groups.google.com/group/loongson-dev/browse_thread/thread/b6b65890ec2b0f24/feb43e5aa7f55d9b?show_docid=feb43e5aa7f55d9b



Reported-by: default avatarTatu Kilappa <tatu.kilappa@gmail.com>
Signed-off-by: default avatarWu Zhangjin <wuzhangjin@gmail.com>
Patchwork: http://patchwork.linux-mips.org/patch/737/


Cc: linux-mips@linux-mips.org
Cc: zhangfx@lemote.com
Signed-off-by: default avatarRalf Baechle <ralf@linux-mips.org>
parent 315fe625
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1778,7 +1778,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