Commit d8a1b2b9 authored by Sam Ravnborg's avatar Sam Ravnborg Committed by David S. Miller

sparc32: move probe_memory() to srmmu.c

Only one user so move it to the file using it.
It had nothing to do in fault_32.
Signed-off-by: default avatarSam Ravnborg <sam@ravnborg.org>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 2acdf2ce
...@@ -32,18 +32,6 @@ ...@@ -32,18 +32,6 @@
int show_unhandled_signals = 1; int show_unhandled_signals = 1;
/* Return how much physical memory we have. */
unsigned long probe_memory(void)
{
unsigned long total = 0;
int i;
for (i = 0; sp_banks[i].num_bytes; i++)
total += sp_banks[i].num_bytes;
return total;
}
static void unhandled_fault(unsigned long, struct task_struct *, static void unhandled_fault(unsigned long, struct task_struct *,
struct pt_regs *) __attribute__ ((noreturn)); struct pt_regs *) __attribute__ ((noreturn));
......
...@@ -228,7 +228,17 @@ void srmmu_free_nocache(void *addr, int size) ...@@ -228,7 +228,17 @@ void srmmu_free_nocache(void *addr, int size)
static void srmmu_early_allocate_ptable_skeleton(unsigned long start, static void srmmu_early_allocate_ptable_skeleton(unsigned long start,
unsigned long end); unsigned long end);
extern unsigned long probe_memory(void); /* in fault.c */ /* Return how much physical memory we have. */
static unsigned long __init probe_memory(void)
{
unsigned long total = 0;
int i;
for (i = 0; sp_banks[i].num_bytes; i++)
total += sp_banks[i].num_bytes;
return total;
}
/* /*
* Reserve nocache dynamically proportionally to the amount of * Reserve nocache dynamically proportionally to the amount of
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment