diff options
author | 2021-06-22 10:39:23 -0300 | |
---|---|---|
committer | 2021-06-25 00:07:09 +1000 | |
commit | 0e5962b2ec3d07204fd995ed07870bff3322525c (patch) | |
tree | fc8c822422adf59177b20dff4f32a71ba2879e47 /tools/perf/scripts/python | |
parent | powerpc/pseries: break early in dlpar_memory_add_by_count() loops (diff) | |
download | wireguard-linux-0e5962b2ec3d07204fd995ed07870bff3322525c.tar.xz wireguard-linux-0e5962b2ec3d07204fd995ed07870bff3322525c.zip |
powerpc/pseries: fail quicker in dlpar_memory_add_by_ic()
The validation done at the start of dlpar_memory_add_by_ic() is an all
of nothing scenario - if any LMBs in the range is marked as RESERVED we
can fail right away.
We then can remove the 'lmbs_available' var and its check with
'lmbs_to_add' since the whole LMB range was already validated in the
previous step.
Signed-off-by: Daniel Henrique Barboza <danielhb413@gmail.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/20210622133923.295373-4-danielhb413@gmail.com
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions