aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorWang Nan <[email protected]>2014-08-06 16:06:08 -0700
committerLinus Torvalds <[email protected]>2014-08-06 18:01:18 -0700
commit1a4dc5bc7cb5659a8004d105afeb0571126f8f56 (patch)
treed3b95ffec47f6e6155e8a95efdcbc26cc1255e12 /tools/perf/scripts/python
parentb69deb2b7e13f04da5c0684c7ce19e788736ab0d (diff)
mem-hotplug: improve zone_movable_is_highmem logic
In original code, zone_movable_is_highmem() assumes ZONE_MOVABLE not highmem if CONFIG_HAVE_MEMBLOCK_NODE_MAP is not set. In online_pages, it extracts pages from the previous zone before ZONE_MOVABLE. Which is logically inconsistent: If HAVE_MEMBLOCK_NODE_MAP is turned off but HIGHMEM is on, zone_movable_is_highmem() makes movable zone not highmem, but online_pages() extracts pages from ZONE_HIGHMEM. This inconsistency doesn't cause real problem currently, because all architectures support online_pages also have HAVE_MEMBLOCK_NODE_MAP. However, fixing it makes code clear, and also helps futher coding. Signed-off-by: Wang Nan <[email protected]> Cc: Zhang Zhen <[email protected]> Cc: Mel Gorman <[email protected]> Cc: Jiang Liu <[email protected]> Cc: Li Zefan <[email protected]> Cc: Yinghai Lu <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions