X-Git-Url: https://git.openpandora.org/cgi-bin/gitweb.cgi?p=pandora-kernel.git;a=blobdiff_plain;f=mm%2Fbootmem.c;h=b8638224c5ddbcec27ca54bded5510b1d3d365f5;hp=1a77012ecdb3c56a92d53ef5b779c9648d54c6a3;hb=3cc0730eef779b6d7e27d6dfa5bd81f76a2baa0c;hpb=d30cc16c8e48368e0518f4975a78711e53e14a0f diff --git a/mm/bootmem.c b/mm/bootmem.c index 1a77012ecdb3..b8638224c5dd 100644 --- a/mm/bootmem.c +++ b/mm/bootmem.c @@ -768,14 +768,13 @@ void * __init alloc_bootmem_section(unsigned long size, unsigned long section_nr) { bootmem_data_t *bdata; - unsigned long pfn, goal, limit; + unsigned long pfn, goal; pfn = section_nr_to_pfn(section_nr); goal = pfn << PAGE_SHIFT; - limit = section_nr_to_pfn(section_nr + 1) << PAGE_SHIFT; bdata = &bootmem_node_data[early_pfn_to_nid(pfn)]; - return alloc_bootmem_core(bdata, size, SMP_CACHE_BYTES, goal, limit); + return alloc_bootmem_core(bdata, size, SMP_CACHE_BYTES, goal, 0); } #endif