Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 75382
b: refs/heads/master
c: e452e94
h: refs/heads/master
v: v3
  • Loading branch information
Atsushi Nemoto authored and Ralf Baechle committed Jan 11, 2008
1 parent 318b3c8 commit 14c88cf
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 7 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: 778bc145feb68f365339d6b5c9e35af2a86fb233
refs/heads/master: e452e94e21e8f4a3c2ff045b301ca21c1f6d03bf
7 changes: 3 additions & 4 deletions trunk/arch/mips/kernel/setup.c
Original file line number Diff line number Diff line change
Expand Up @@ -269,7 +269,7 @@ static void __init bootmem_init(void)

static void __init bootmem_init(void)
{
unsigned long init_begin, reserved_end;
unsigned long reserved_end;
unsigned long mapstart = ~0UL;
unsigned long bootmap_size;
int i;
Expand Down Expand Up @@ -344,16 +344,15 @@ static void __init bootmem_init(void)
min_low_pfn, max_low_pfn);


init_begin = PFN_UP(__pa_symbol(&__init_begin));
for (i = 0; i < boot_mem_map.nr_map; i++) {
unsigned long start, end;

start = PFN_UP(boot_mem_map.map[i].addr);
end = PFN_DOWN(boot_mem_map.map[i].addr
+ boot_mem_map.map[i].size);

if (start <= init_begin)
start = init_begin;
if (start <= min_low_pfn)
start = min_low_pfn;
if (start >= end)
continue;

Expand Down
2 changes: 0 additions & 2 deletions trunk/arch/mips/mips-boards/generic/memory.c
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,6 @@ void __init prom_meminit(void)

void __init prom_free_prom_memory(void)
{
#if 0 /* for now ... */
unsigned long addr;
int i;

Expand All @@ -181,5 +180,4 @@ void __init prom_free_prom_memory(void)
free_init_pages("prom memory",
addr, addr + boot_mem_map.map[i].size);
}
#endif
}

0 comments on commit 14c88cf

Please sign in to comment.