sparc32: Kill totally unused memory information tables.

The code in arch/sparc/prom/memory.c computes three tables, the list
of total memory, the list of available memory (total minus what
firmware is using), and the list of firmware taken memory.

Only the available memory list is even used.

Therefore, kill those unused tables and make prom_meminfo() return
just the available memory list.

Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
David S. Miller
2008-05-01 21:28:59 -07:00
parent 2678fefedb
commit ccc34028d4
3 changed files with 8 additions and 110 deletions

View File

@ -55,7 +55,7 @@ int prom_probe_memory (void)
register int i;
i = 0;
mlist= *prom_meminfo()->v0_available;
mlist= prom_meminfo();
bytes = tally = mlist->num_bytes;
base_paddr = (unsigned long) mlist->start_adr;