diff options
| author | Dave Martin <[email protected]> | 2018-09-28 14:39:07 +0100 |
|---|---|---|
| committer | Marc Zyngier <[email protected]> | 2019-03-29 14:41:52 +0000 |
| commit | 7aa92cf318f8136c445c1656d291f50df189b56a (patch) | |
| tree | 266ad111857dc89860af977955a27d5806d19c55 /tools/perf/scripts/python/stackcollapse.py | |
| parent | 38abf22e122e00d20e99408fce4471b5cb65133b (diff) | |
KVM: arm64: Refactor kvm_arm_num_regs() for easier maintenance
kvm_arm_num_regs() adds together various partial register counts in
a freeform sum expression, which makes it harder than necessary to
read diffs that add, modify or remove a single term in the sum
(which is expected to the common case under maintenance).
This patch refactors the code to add the term one per line, for
maximum readability.
Signed-off-by: Dave Martin <[email protected]>
Reviewed-by: Alex Bennée <[email protected]>
Tested-by: zhang.lei <[email protected]>
Signed-off-by: Marc Zyngier <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions