diff options
author | Tony Luck <[email protected]> | 2014-12-12 16:54:59 -0800 |
---|---|---|
committer | Linus Torvalds <[email protected]> | 2014-12-13 12:42:46 -0800 |
commit | 4308ce17f6e1c404276484f6e4e0bf496a95982f (patch) | |
tree | ddbb49cfe1b6a6217fd6c5e2819bb931ecaa714a /tools/perf/scripts/python/syscall-counts-by-pid.py | |
parent | 95fc3c5010da8fd8bd3e2c8bc0fb9dc7606e3a3b (diff) |
mm/memblock.c: refactor functions to set/clear MEMBLOCK_HOTPLUG
There is a lot of duplication in the rubric around actually setting or
clearing a mem region flag. Create a new helper function to do this and
reduce each of memblock_mark_hotplug() and memblock_clear_hotplug() to a
single line.
This will be useful if someone were to add a new mem region flag - which
I hope to be doing some day soon. But it looks like a plausible cleanup
even without that - so I'd like to get it out of the way now.
Signed-off-by: Tony Luck <[email protected]>
Cc: Santosh Shilimkar <[email protected]>
Cc: Tang Chen <[email protected]>
Cc: Grygorii Strashko <[email protected]>
Cc: Zhang Yanfei <[email protected]>
Cc: Philipp Hachtmann <[email protected]>
Cc: Yinghai Lu <[email protected]>
Cc: Emil Medve <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/syscall-counts-by-pid.py')
0 files changed, 0 insertions, 0 deletions