Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 146807
b: refs/heads/master
c: 8fc4023
h: refs/heads/master
i:
  146805: 09fe596
  146803: c02125b
  146799: 7ef62ab
v: v3
  • Loading branch information
Paul Mundt committed May 22, 2009
1 parent 9884c11 commit a06abb0
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 5 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: 62fad39be0662a924b60e4354b802525ceda0bb1
refs/heads/master: 8fc40238b4ebf07cd11ca9707843338be22af72f
3 changes: 0 additions & 3 deletions trunk/arch/sh/mm/init.c
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,6 @@ void __init paging_init(void)
}

static struct kcore_list kcore_mem, kcore_vmalloc;
int after_bootmem = 0;

void __init mem_init(void)
{
Expand Down Expand Up @@ -217,8 +216,6 @@ void __init mem_init(void)
memset(empty_zero_page, 0, PAGE_SIZE);
__flush_wback_region(empty_zero_page, PAGE_SIZE);

after_bootmem = 1;

codesize = (unsigned long) &_etext - (unsigned long) &_text;
datasize = (unsigned long) &_edata - (unsigned long) &_etext;
initsize = (unsigned long) &__init_end - (unsigned long) &__init_begin;
Expand Down
3 changes: 2 additions & 1 deletion trunk/arch/sh/mm/ioremap_64.c
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
#include <linux/io.h>
#include <linux/bootmem.h>
#include <linux/proc_fs.h>
#include <linux/slab.h>
#include <asm/page.h>
#include <asm/pgalloc.h>
#include <asm/addrspace.h>
Expand Down Expand Up @@ -175,7 +176,7 @@ static __init_refok void *sh64_get_page(void)
{
void *page;

if (after_bootmem)
if (slab_is_available())
page = (void *)get_zeroed_page(GFP_KERNEL);
else
page = alloc_bootmem_pages(PAGE_SIZE);
Expand Down

0 comments on commit a06abb0

Please sign in to comment.