mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 02:32:09 -04:00
Revert "x86_64: allocate sparsemem memmap above 4G"
This reverts commit 2e1c49db4c.
First off, testing in Fedora has shown it to cause boot failures,
bisected down by Martin Ebourne, and reported by Dave Jobes. So the
commit will likely be reverted in the 2.6.23 stable kernels.
Secondly, in the 2.6.24 model, x86-64 has now grown support for
SPARSEMEM_VMEMMAP, which disables the relevant code anyway, so while the
bug is not visible any more, it's become invisible due to the code just
being irrelevant and no longer enabled on the only architecture that
this ever affected.
Reported-by: Dave Jones <[email protected]>
Tested-by: Martin Ebourne <[email protected]>
Cc: Zou Nan hai <[email protected]>
Cc: Suresh Siddha <[email protected]>
Cc: Andrew Morton <[email protected]>
Acked-by: Andy Whitcroft <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
This commit is contained in:
parent
3529a23342
commit
6a22c57b8d
3 changed files with 0 additions and 18 deletions
11
mm/sparse.c
11
mm/sparse.c
|
|
@ -220,12 +220,6 @@ static int __meminit sparse_init_one_section(struct mem_section *ms,
|
|||
return 1;
|
||||
}
|
||||
|
||||
__attribute__((weak)) __init
|
||||
void *alloc_bootmem_high_node(pg_data_t *pgdat, unsigned long size)
|
||||
{
|
||||
return NULL;
|
||||
}
|
||||
|
||||
static unsigned long usemap_size(void)
|
||||
{
|
||||
unsigned long size_bytes;
|
||||
|
|
@ -267,11 +261,6 @@ struct page __init *sparse_mem_map_populate(unsigned long pnum, int nid)
|
|||
if (map)
|
||||
return map;
|
||||
|
||||
map = alloc_bootmem_high_node(NODE_DATA(nid),
|
||||
sizeof(struct page) * PAGES_PER_SECTION);
|
||||
if (map)
|
||||
return map;
|
||||
|
||||
map = alloc_bootmem_node(NODE_DATA(nid),
|
||||
sizeof(struct page) * PAGES_PER_SECTION);
|
||||
return map;
|
||||
|
|
|
|||
Loading…
Reference in a new issue