1 // SPDX-License-Identifier: GPL-2.0-only 1 2 #include <linux/highmem.h> 3 #include <linux/export.h> 4 #include <linux/swap.h> /* for totalram_pages 5 #include <linux/memblock.h> 6 #include <asm/numa.h> 7 8 void __init set_highmem_pages_init(void) 9 { 10 struct zone *zone; 11 int nid; 12 13 /* 14 * Explicitly reset zone->managed_page 15 * is invoked before memblock_free_all 16 */ 17 reset_all_zones_managed_pages(); 18 for_each_zone(zone) { 19 unsigned long zone_start_pfn, 20 21 if (!is_highmem(zone)) 22 continue; 23 24 zone_start_pfn = zone->zone_st 25 zone_end_pfn = zone_start_pfn 26 27 nid = zone_to_nid(zone); 28 printk(KERN_INFO "Initializing 29 zone->name, ni 30 31 add_highpages_with_active_regi 32 zone_end_pfn) 33 } 34 } 35
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.