diff options
author | David S. Miller <davem@davemloft.net> | 2008-05-02 00:28:59 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2008-05-02 08:22:53 -0400 |
commit | ccc34028d46230f715eeda4c8cce27e919934fad (patch) | |
tree | fa9ef4679b6c30c5b439471ba39c5e383011c25e /include/asm-sparc | |
parent | 2678fefedbbc03a3ae6f5c254791bf147d6c52fd (diff) |
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.h | 13 |
1 files changed, 3 insertions, 10 deletions
diff --git a/include/asm-sparc/oplib.h b/include/asm-sparc/oplib.h index 17ba82ee220a..6ff1a3bb15bc 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, | |||
86 | 86 | ||
87 | /* Machine memory configuration routine. */ | 87 | /* Machine memory configuration routine. */ |
88 | 88 | ||
89 | /* This function returns a V0 format memory descriptor table, it has three | 89 | /* This function returns a V0 format available memory descriptor entry. |
90 | * entries. One for the total amount of physical ram on the machine, one | 90 | * This list is pre-sorted, |
91 | * for the amount of physical ram available, and one describing the virtual | ||
92 | * areas which are allocated by the prom. So, in a sense the physical | ||
93 | * available is a calculation of the total physical minus the physical mapped | ||
94 | * by the prom with virtual mappings. | ||
95 | * | ||
96 | * These lists are returned pre-sorted, this should make your life easier | ||
97 | * since the prom itself is way too lazy to do such nice things. | ||
98 | */ | 91 | */ |
99 | extern struct linux_mem_v0 *prom_meminfo(void); | 92 | extern struct linux_mlist_v0 *prom_meminfo(void); |
100 | 93 | ||
101 | /* Miscellaneous routines, don't really fit in any category per se. */ | 94 | /* Miscellaneous routines, don't really fit in any category per se. */ |
102 | 95 | ||