summaryrefslogtreecommitdiffstats
path: root/include/asm-sparc
diff options
context:
space:
mode:
authorDavid S. Miller <davem@davemloft.net>2008-05-01 21:28:59 -0700
committerDavid S. Miller <davem@davemloft.net>2008-05-02 05:22:53 -0700
commitccc34028d46230f715eeda4c8cce27e919934fad (patch)
treefa9ef4679b6c30c5b439471ba39c5e383011c25e /include/asm-sparc
parent2678fefedbbc03a3ae6f5c254791bf147d6c52fd (diff)
downloadop-kernel-dev-ccc34028d46230f715eeda4c8cce27e919934fad.zip
op-kernel-dev-ccc34028d46230f715eeda4c8cce27e919934fad.tar.gz
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 'include/asm-sparc')
-rw-r--r--include/asm-sparc/oplib.h13
1 files changed, 3 insertions, 10 deletions
diff --git a/include/asm-sparc/oplib.h b/include/asm-sparc/oplib.h
index 17ba82ee..6ff1a3b 100644
--- a/include/asm-sparc/oplib.h
+++ b/include/asm-sparc/oplib.h
@@ -86,17 +86,10 @@ extern void prom_seek(int device_handle, unsigned int seek_hival,
/* Machine memory configuration routine. */
-/* This function returns a V0 format memory descriptor table, it has three
- * entries. One for the total amount of physical ram on the machine, one
- * for the amount of physical ram available, and one describing the virtual
- * areas which are allocated by the prom. So, in a sense the physical
- * available is a calculation of the total physical minus the physical mapped
- * by the prom with virtual mappings.
- *
- * These lists are returned pre-sorted, this should make your life easier
- * since the prom itself is way too lazy to do such nice things.
+/* This function returns a V0 format available memory descriptor entry.
+ * This list is pre-sorted,
*/
-extern struct linux_mem_v0 *prom_meminfo(void);
+extern struct linux_mlist_v0 *prom_meminfo(void);
/* Miscellaneous routines, don't really fit in any category per se. */
OpenPOWER on IntegriCloud