aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorTang Chen <[email protected]>2013-02-22 16:33:18 -0800
committerLinus Torvalds <[email protected]>2013-02-23 17:50:13 -0800
commita1e565aa3cfc7c6252cabc93de8391d12b9216aa (patch)
treef02974503acc8b61a7d8857c36dfb8b6cf7897ab /tools/perf/scripts/python
parentd822b86a99e8d2b7ebbe3aba099288354287a885 (diff)
memory-hotplug: do not allocate pgdat if it was not freed when offline.
Since there is no way to guarentee the address of pgdat/zone is not on stack of any kernel threads or used by other kernel objects without reference counting or other symchronizing method, we cannot reset node_data and free pgdat when offlining a node. Just reset pgdat to 0 and reuse the memory when the node is online again. The problem is suggested by Kamezawa Hiroyuki. The idea is from Wen Congyang. NOTE: If we don't reset pgdat to 0, the WARN_ON in free_area_init_node() will be triggered. [[email protected]: fix warning when CONFIG_NEED_MULTIPLE_NODES=n] [[email protected]: fix the warning again again] Signed-off-by: Tang Chen <[email protected]> Reviewed-by: Wen Congyang <[email protected]> Cc: KOSAKI Motohiro <[email protected]> Cc: Jiang Liu <[email protected]> Cc: Jianguo Wu <[email protected]> Cc: Kamezawa Hiroyuki <[email protected]> Cc: Lai Jiangshan <[email protected]> Cc: Wu Jianguo <[email protected]> Cc: Yasuaki Ishimatsu <[email protected]> Cc: Ingo Molnar <[email protected]> Cc: Thomas Gleixner <[email protected]> Cc: "H. Peter Anvin" <[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