Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 365375
b: refs/heads/master
c: bced0e3
h: refs/heads/master
i:
  365373: a9b3bdf
  365371: ed67338
  365367: de31ea5
  365359: 97f5d89
  365343: 4dad2e0
  365311: 6535af6
v: v3
  • Loading branch information
Jiang Liu authored and Linus Torvalds committed Apr 29, 2013
1 parent 8eff114 commit bea7671
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 8 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: ccecb510a9b58f1e30a45f35897842f915c24c62
refs/heads/master: bced0e32f6bdf4e2584bc9df58e3fbebaaf42bef
5 changes: 1 addition & 4 deletions trunk/arch/x86/mm/init.c
Original file line number Diff line number Diff line change
Expand Up @@ -515,11 +515,8 @@ void free_init_pages(char *what, unsigned long begin, unsigned long end)
printk(KERN_INFO "Freeing %s: %luk freed\n", what, (end - begin) >> 10);

for (; addr < end; addr += PAGE_SIZE) {
ClearPageReserved(virt_to_page(addr));
init_page_count(virt_to_page(addr));
memset((void *)addr, POISON_FREE_INITMEM, PAGE_SIZE);
free_page(addr);
totalram_pages++;
free_reserved_page(virt_to_page(addr));
}
#endif
}
Expand Down
5 changes: 2 additions & 3 deletions trunk/arch/x86/mm/init_64.c
Original file line number Diff line number Diff line change
Expand Up @@ -1067,10 +1067,9 @@ void __init mem_init(void)

/* clear_bss() already clear the empty_zero_page */

reservedpages = 0;

/* this will put all low memory onto the freelists */
register_page_bootmem_info();

/* this will put all memory onto the freelists */
totalram_pages = free_all_bootmem();

absent_pages = absent_pages_in_range(0, max_pfn);
Expand Down

0 comments on commit bea7671

Please sign in to comment.