summaryrefslogtreecommitdiff
path: root/arch/sparc/mm
diff options
context:
space:
mode:
authorDavid S. Miller <davem@davemloft.net>2008-05-02 08:28:59 +0400
committerDavid S. Miller <davem@davemloft.net>2008-05-02 16:22:53 +0400
commitccc34028d46230f715eeda4c8cce27e919934fad (patch)
treefa9ef4679b6c30c5b439471ba39c5e383011c25e /arch/sparc/mm
parent2678fefedbbc03a3ae6f5c254791bf147d6c52fd (diff)
downloadlinux-ccc34028d46230f715eeda4c8cce27e919934fad.tar.xz
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.c2
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;