diff options
author | David S. Miller <davem@davemloft.net> | 2008-05-01 21:28:59 -0700 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2008-05-02 05:22:53 -0700 |
commit | ccc34028d46230f715eeda4c8cce27e919934fad (patch) | |
tree | fa9ef4679b6c30c5b439471ba39c5e383011c25e /arch/sparc/mm | |
parent | 2678fefedbbc03a3ae6f5c254791bf147d6c52fd (diff) | |
download | linux-ccc34028d46230f715eeda4c8cce27e919934fad.tar.bz2 |
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>
Diffstat (limited to 'arch/sparc/mm')
-rw-r--r-- | arch/sparc/mm/fault.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/sparc/mm/fault.c b/arch/sparc/mm/fault.c index e4d9c8e19df5..f25876a56fe6 100644 --- a/arch/sparc/mm/fault.c +++ b/arch/sparc/mm/fault.c @@ -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; |