• Jiang Liu's avatar
    mm/hotplug: mark memory hotplug code in page_alloc.c as __meminit · 4ed7e022
    Jiang Liu authored
    Mark functions used by both boot and memory hotplug as __meminit to reduce
    memory footprint when memory hotplug is disabled.
    
    Alos guard zone_pcp_update() with CONFIG_MEMORY_HOTPLUG because it's only
    used by memory hotplug code.
    Signed-off-by: default avatarJiang Liu <liuj97@gmail.com>
    Cc: Wei Wang <Bessel.Wang@huawei.com>
    Cc: Mel Gorman <mgorman@suse.de>
    Cc: Michal Hocko <mhocko@suse.cz>
    Cc: Minchan Kim <minchan@kernel.org>
    Cc: Rusty Russell <rusty@rustcorp.com.au>
    Cc: Yinghai Lu <yinghai@kernel.org>
    Cc: Tony Luck <tony.luck@intel.com>
    Cc: KAMEZAWA Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com>
    Cc: KOSAKI Motohiro <kosaki.motohiro@jp.fujitsu.com>
    Cc: David Rientjes <rientjes@google.com>
    Cc: Keping Chen <chenkeping@huawei.com>
    Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
    Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
    4ed7e022
page_alloc.c 167 KB