diff options
author | Tejun Heo <[email protected]> | 2011-07-12 11:15:55 +0200 |
---|---|---|
committer | H. Peter Anvin <[email protected]> | 2011-07-14 11:47:41 -0700 |
commit | 784656f9c680d334e7b4cdb6951c5c913e5a26bf (patch) | |
tree | e70487038744f31ebab8ff16e14991f4a6b74222 /tools/perf/util/scripting-engines/trace-event-python.c | |
parent | ed7b56a799cade11f458cd83e1150af54a66b7e8 (diff) |
memblock: Reimplement memblock_add_region()
memblock_add_region() carefully checked for merge and overlap
conditions while adding a new region, which is complicated and makes
it difficult to allow arbitrary overlaps or add more merge conditions
(e.g. node ID).
This re-implements memblock_add_region() such that insertion is done
in two steps - all non-overlapping portions of new area are inserted
as separate regions first and then memblock_merge_regions() scan and
merge all neighbouring compatible regions.
This makes addition logic simpler and more versatile and enables
adding node information to memblock.
Signed-off-by: Tejun Heo <[email protected]>
Link: http://lkml.kernel.org/r/[email protected]
Cc: Yinghai Lu <[email protected]>
Cc: Benjamin Herrenschmidt <[email protected]>
Signed-off-by: H. Peter Anvin <[email protected]>
Diffstat (limited to 'tools/perf/util/scripting-engines/trace-event-python.c')
0 files changed, 0 insertions, 0 deletions