mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-28 09:31:14 +00:00
Merge branch 'x86/mm' into x86/asm, to merge branches
Most of x86/mm is already in x86/asm, so merge the rest too. Signed-off-by: Ingo Molnar <mingo@kernel.org>
This commit is contained in:
commit
d04fdafc06
3 changed files with 10 additions and 11 deletions
10
mm/sparse.c
10
mm/sparse.c
|
@ -207,6 +207,16 @@ void __init memory_present(int nid, unsigned long start, unsigned long end)
|
|||
{
|
||||
unsigned long pfn;
|
||||
|
||||
#ifdef CONFIG_SPARSEMEM_EXTREME
|
||||
if (unlikely(!mem_section)) {
|
||||
unsigned long size, align;
|
||||
|
||||
size = sizeof(struct mem_section) * NR_SECTION_ROOTS;
|
||||
align = 1 << (INTERNODE_CACHE_SHIFT);
|
||||
mem_section = memblock_virt_alloc(size, align);
|
||||
}
|
||||
#endif
|
||||
|
||||
start &= PAGE_SECTION_MASK;
|
||||
mminit_validate_memmodel_limits(&start, &end);
|
||||
for (pfn = start; pfn < end; pfn += PAGES_PER_SECTION) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue