Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

MIPS: Move arch_mem_init() comment near definition

The comment describing arch_mem_init() was separated from the definition
of arch_mem_init() by commit a09fc446fb6d ("[MIPS] setup.c: use
early_param() for early command line parsing"). Move the comment such
that it's next to the definition again for ease of reading.

Signed-off-by: Paul Burton <paul.burton@mips.com>

+22 -23
+22 -23
arch/mips/kernel/setup.c
··· 642 642 643 643 #endif /* CONFIG_SGI_IP27 */ 644 644 645 - /* 646 - * arch_mem_init - initialize memory management subsystem 647 - * 648 - * o plat_mem_setup() detects the memory configuration and will record detected 649 - * memory areas using add_memory_region. 650 - * 651 - * At this stage the memory configuration of the system is known to the 652 - * kernel but generic memory management system is still entirely uninitialized. 653 - * 654 - * o bootmem_init() 655 - * o sparse_init() 656 - * o paging_init() 657 - * o dma_contiguous_reserve() 658 - * 659 - * At this stage the bootmem allocator is ready to use. 660 - * 661 - * NOTE: historically plat_mem_setup did the entire platform initialization. 662 - * This was rather impractical because it meant plat_mem_setup had to 663 - * get away without any kind of memory allocator. To keep old code from 664 - * breaking plat_setup was just renamed to plat_mem_setup and a second platform 665 - * initialization hook for anything else was introduced. 666 - */ 667 - 668 645 static int usermem __initdata; 669 646 670 647 static int __init early_parse_mem(char *p) ··· 818 841 #define BUILTIN_EXTEND_WITH_PROM \ 819 842 IS_ENABLED(CONFIG_MIPS_CMDLINE_BUILTIN_EXTEND) 820 843 844 + /* 845 + * arch_mem_init - initialize memory management subsystem 846 + * 847 + * o plat_mem_setup() detects the memory configuration and will record detected 848 + * memory areas using add_memory_region. 849 + * 850 + * At this stage the memory configuration of the system is known to the 851 + * kernel but generic memory management system is still entirely uninitialized. 852 + * 853 + * o bootmem_init() 854 + * o sparse_init() 855 + * o paging_init() 856 + * o dma_contiguous_reserve() 857 + * 858 + * At this stage the bootmem allocator is ready to use. 859 + * 860 + * NOTE: historically plat_mem_setup did the entire platform initialization. 861 + * This was rather impractical because it meant plat_mem_setup had to 862 + * get away without any kind of memory allocator. To keep old code from 863 + * breaking plat_setup was just renamed to plat_mem_setup and a second platform 864 + * initialization hook for anything else was introduced. 865 + */ 821 866 static void __init arch_mem_init(char **cmdline_p) 822 867 { 823 868 struct memblock_region *reg;