函数源码 |
Source File:mm\page_alloc.c |
Create Date:2022-07-27 16:37:20 |
首页 | Copyright©Brick |
5763 5764 5765 5766 5767 5768 5769 5770 5771 5772 5773 5774 5775 5776 5777 5778 5779 5780 5781 5782 5783 5784 5785 5786 5787 5788 | static noinline void __init build_all_zonelists_init( void ) { int cpu; __build_all_zonelists(NULL); /* * Initialize the boot_pagesets that are going to be used * for bootstrapping processors. The real pagesets for * each zone will be allocated later when the per cpu * allocator is available. * * boot_pagesets are used also for bootstrapping offline * cpus if the system is already booted because the pagesets * are needed to initialize allocators on a specific cpu too. * F.e. the percpu allocator needs the page allocator which * needs the percpu allocator in order to allocate its pagesets * (a chicken-egg dilemma). */ for_each_possible_cpu(cpu) setup_pageset(&per_cpu(boot_pageset, cpu), 0); mminit_verify_zonelist(); cpuset_init_current_mems_allowed(); } |