linux/arch/mips/mm
Atsushi Nemoto 565200a146 [MIPS] Do not count pages in holes with sparsemem
With some memory model other than FLATMEM, the single node can
contains some holes so there might be many invalid pages.  For
example, with two 256M memory and one 256M hole, some variables
(num_physpage, totalpages, nr_kernel_pages, nr_all_pages, etc.) will
indicate that there are 768MB on this system.  This is not desired
because, for example, alloc_large_system_hash() allocates too many
entries.
    
Use free_area_init_node() with counted zholes_size[] instead of
free_area_init().

For num_physpages, use number of ram pages instead of max_low_pfn.

Signed-off-by: Atsushi Nemoto <anemo@mba.ocn.ne.jp>
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
2006-07-13 21:26:08 +01:00
..
Makefile [MIPS] MIPS32/MIPS64 secondary cache management 2006-06-29 21:10:52 +01:00
c-r3k.c [MIPS] Handle IDE PIO cache aliases on SMP. 2006-04-19 04:14:29 +02:00
c-r4k.c [MIPS] VR41xx: Set VR41_CONF_BP only for PrId 0x0c80. 2006-07-13 21:26:06 +01:00
c-sb1.c Remove obsolete #include <linux/config.h> 2006-06-30 19:25:36 +02:00
c-tx39.c [MIPS] Handle IDE PIO cache aliases on SMP. 2006-04-19 04:14:29 +02:00
cache.c Remove obsolete #include <linux/config.h> 2006-06-30 19:25:36 +02:00
cerr-sb1.c Remove obsolete #include <linux/config.h> 2006-06-30 19:25:36 +02:00
cex-gen.S Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
cex-sb1.S [MIPS] Sibyte: #if CONFIG_* doesn't fly. 2006-02-21 16:58:23 +00:00
dma-coherent.c Remove obsolete #include <linux/config.h> 2006-06-30 19:25:36 +02:00
dma-ip27.c [PATCH] gfp_t: dma-mapping (mips) 2005-10-28 08:16:48 -07:00
dma-ip32.c [PATCH] s/;;/;/g 2006-03-24 07:33:24 -08:00
dma-noncoherent.c Remove obsolete #include <linux/config.h> 2006-06-30 19:25:36 +02:00
extable.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
fault.c [MIPS] MT: Improved multithreading support. 2006-04-19 04:14:28 +02:00
highmem.c Remove obsolete #include <linux/config.h> 2006-06-30 19:25:36 +02:00
init.c [MIPS] Do not count pages in holes with sparsemem 2006-07-13 21:26:08 +01:00
ioremap.c [PATCH] mm: init_mm without ptlock 2005-10-29 21:40:40 -07:00
pg-r4k.c [MIPS] Treat R14000 like R10000. 2006-06-01 00:28:35 +01:00
pg-sb1.c Remove obsolete #include <linux/config.h> 2006-06-30 19:25:36 +02:00
pgtable-32.c Remove obsolete #include <linux/config.h> 2006-06-30 19:25:36 +02:00
pgtable-64.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
pgtable.c Remove obsolete #include <linux/config.h> 2006-06-30 19:25:36 +02:00
sc-ip22.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
sc-mips.c [MIPS] MIPS32/MIPS64 S-cache fix and cleanup 2006-06-29 21:10:54 +01:00
sc-r5k.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
sc-rm7k.c [MIPS] Use __ffs() instead of ffs() for waybit calculation. 2006-04-19 04:14:30 +02:00
tlb-r3k.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
tlb-r4k.c Remove obsolete #include <linux/config.h> 2006-06-30 19:25:36 +02:00
tlb-r8k.c Remove obsolete #include <linux/config.h> 2006-06-30 19:25:36 +02:00
tlbex-fault.S Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
tlbex.c Remove obsolete #include <linux/config.h> 2006-06-30 19:25:36 +02:00