Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 318955
b: refs/heads/master
c: d8a1b2b
h: refs/heads/master
i:
  318953: ced77b5
  318951: b0263e4
v: v3
  • Loading branch information
Sam Ravnborg authored and David S. Miller committed Jul 26, 2012
1 parent 0753ced commit 84da978
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 14 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 2acdf2cefe8065a35844566bf996628fbcc9e014
refs/heads/master: d8a1b2b94ca5fe219b3c77389e2424145c24c668
12 changes: 0 additions & 12 deletions trunk/arch/sparc/mm/fault_32.c
Original file line number Diff line number Diff line change
Expand Up @@ -32,18 +32,6 @@

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 *,
struct pt_regs *) __attribute__ ((noreturn));

Expand Down
12 changes: 11 additions & 1 deletion trunk/arch/sparc/mm/srmmu.c
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,17 @@ void srmmu_free_nocache(void *addr, int size)
static void srmmu_early_allocate_ptable_skeleton(unsigned long start,
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
Expand Down

0 comments on commit 84da978

Please sign in to comment.