diff options
| author | Daniel Henrique Barboza <[email protected]> | 2021-05-12 17:28:09 -0300 |
|---|---|---|
| committer | Michael Ellerman <[email protected]> | 2021-05-23 20:51:35 +1000 |
| commit | 40999b041e03b32434b2f4a951668e9865a3cb6b (patch) | |
| tree | 1b2d25d42b4c02482d31f4b2d43738d4bf9e2ef8 /tools/perf/scripts/python | |
| parent | 163e7921750f6cd965666f472c21de056c63dcbc (diff) | |
powerpc/pseries: minor enhancements in dlpar_memory_remove_by_ic()
We don't need the 'lmbs_available' variable to count the valid LMBs and
to check if we have less than 'lmbs_to_remove'. We must ensure that the
entire LMB range must be removed, so we can error out immediately if any
LMB in the range is marked as reserved.
Add a couple of comments explaining the reasoning behind the differences
we have in this function in contrast to what it is done in its sister
function, dlpar_memory_remove_by_count().
Signed-off-by: Daniel Henrique Barboza <[email protected]>
Reviewed-by: David Gibson <[email protected]>
Signed-off-by: Michael Ellerman <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions