mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-11-25 09:00:54 +07:00
x86: make e820_end return max ram type only for 32 bit
to avoid warning from find_low_pfn_range for high pages size etc Signed-off-by: Yinghai Lu <yhlu.kernel@gmail.com> Signed-off-by: Ingo Molnar <mingo@elte.hu>
This commit is contained in:
parent
183fe06565
commit
c22d4c1885
@ -1066,6 +1066,11 @@ unsigned long __init e820_end(void)
|
||||
struct e820entry *ei = &e820.map[i];
|
||||
unsigned long end_pfn;
|
||||
|
||||
#ifdef CONFIG_X86_32
|
||||
if (ei->type != E820_RAM)
|
||||
continue;
|
||||
#endif
|
||||
|
||||
end_pfn = (ei->addr + ei->size) >> PAGE_SHIFT;
|
||||
if (end_pfn > last_pfn)
|
||||
last_pfn = end_pfn;
|
||||
|
Loading…
Reference in New Issue
Block a user