diff options
Diffstat (limited to 'arch/sparc/mm/srmmu.c')
-rw-r--r-- | arch/sparc/mm/srmmu.c | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/arch/sparc/mm/srmmu.c b/arch/sparc/mm/srmmu.c index ad93d2ee6be2..c38bb72e3e80 100644 --- a/arch/sparc/mm/srmmu.c +++ b/arch/sparc/mm/srmmu.c | |||
@@ -228,7 +228,17 @@ void srmmu_free_nocache(void *addr, int size) | |||
228 | static void srmmu_early_allocate_ptable_skeleton(unsigned long start, | 228 | static void srmmu_early_allocate_ptable_skeleton(unsigned long start, |
229 | unsigned long end); | 229 | unsigned long end); |
230 | 230 | ||
231 | extern unsigned long probe_memory(void); /* in fault.c */ | 231 | /* Return how much physical memory we have. */ |
232 | static unsigned long __init probe_memory(void) | ||
233 | { | ||
234 | unsigned long total = 0; | ||
235 | int i; | ||
236 | |||
237 | for (i = 0; sp_banks[i].num_bytes; i++) | ||
238 | total += sp_banks[i].num_bytes; | ||
239 | |||
240 | return total; | ||
241 | } | ||
232 | 242 | ||
233 | /* | 243 | /* |
234 | * Reserve nocache dynamically proportionally to the amount of | 244 | * Reserve nocache dynamically proportionally to the amount of |