diff options
| author | Zhang Zhen <[email protected]> | 2014-10-09 15:26:31 -0700 |
|---|---|---|
| committer | Linus Torvalds <[email protected]> | 2014-10-09 22:25:52 -0400 |
| commit | ed2f240094f900833ac06f533ab8bbcf0a1e8199 (patch) | |
| tree | a29d18bd9463645fa6ecdab3dd90945f861097d2 /tools/perf/scripts/python | |
| parent | cc71aba348906ff93a4ad2f600045ee2d1ecc291 (diff) | |
memory-hotplug: add sysfs valid_zones attribute
Currently memory-hotplug has two limits:
1. If the memory block is in ZONE_NORMAL, you can change it to
ZONE_MOVABLE, but this memory block must be adjacent to ZONE_MOVABLE.
2. If the memory block is in ZONE_MOVABLE, you can change it to
ZONE_NORMAL, but this memory block must be adjacent to ZONE_NORMAL.
With this patch, we can easy to know a memory block can be onlined to
which zone, and don't need to know the above two limits.
Updated the related Documentation.
[[email protected]: use conventional comment layout]
[[email protected]: fix build with CONFIG_MEMORY_HOTREMOVE=n]
[[email protected]: remove unused local zone_prev]
Signed-off-by: Zhang Zhen <[email protected]>
Cc: Dave Hansen <[email protected]>
Cc: David Rientjes <[email protected]>
Cc: Toshi Kani <[email protected]>
Cc: Yasuaki Ishimatsu <[email protected]>
Cc: Naoya Horiguchi <[email protected]>
Cc: Wang Nan <[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