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
Unified · Split
| @@ -1778,7 +1778,7 @@ config SYS_SUPPORTS_SMARTMIPS · 1777 unmodified lines | |||
| 1778 | 1778 | ||
| 1779 | config ARCH_FLATMEM_ENABLE | 1779 | config ARCH_FLATMEM_ENABLE |
| 1780 | def_bool y | 1780 | def_bool y |
| 1781 | depends on !NUMA | 1781 | depends on !NUMA && !CPU_LOONGSON2 |
| 1782 | 1782 | ||
| 1783 | config ARCH_DISCONTIGMEM_ENABLE | 1783 | config ARCH_DISCONTIGMEM_ENABLE |
| 1784 | bool | 1784 | bool |