MIPS: OCTEON: Don't add kernel sections into memblock allocator

Because check_kernel_sections_mem() does exactly this for all platforms.

Signed-off-by: Alexander Sverdlin <alexander.sverdlin@nokia.com>
Signed-off-by: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
This commit is contained in:
Alexander Sverdlin 2020-12-03 13:36:49 +01:00 коммит произвёл Thomas Bogendoerfer
Родитель d121f125af
Коммит ca13300a88
1 изменённых файлов: 0 добавлений и 9 удалений

Просмотреть файл

@ -973,8 +973,6 @@ void __init plat_mem_setup(void)
uint64_t crashk_end; uint64_t crashk_end;
#ifndef CONFIG_CRASH_DUMP #ifndef CONFIG_CRASH_DUMP
int64_t memory; int64_t memory;
uint64_t kernel_start;
uint64_t kernel_size;
#endif #endif
total = 0; total = 0;
@ -1078,13 +1076,6 @@ void __init plat_mem_setup(void)
} }
} }
cvmx_bootmem_unlock(); cvmx_bootmem_unlock();
/* Add the memory region for the kernel. */
kernel_start = (unsigned long) _text;
kernel_size = _end - _text;
/* Adjust for physical offset. */
kernel_start &= ~0xffffffff80000000ULL;
memblock_add(kernel_start, kernel_size);
#endif /* CONFIG_CRASH_DUMP */ #endif /* CONFIG_CRASH_DUMP */
#ifdef CONFIG_CAVIUM_RESERVE32 #ifdef CONFIG_CAVIUM_RESERVE32