diff options
author | Dave Martin <Dave.Martin@arm.com> | 2018-09-28 14:39:07 +0100 |
---|---|---|
committer | Marc Zyngier <marc.zyngier@arm.com> | 2019-03-29 14:41:52 +0000 |
commit | 7aa92cf318f8136c445c1656d291f50df189b56a (patch) | |
tree | 266ad111857dc89860af977955a27d5806d19c55 /tools/perf/scripts/python/exported-sql-viewer.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 <Dave.Martin@arm.com>
Reviewed-by: Alex Bennée <alex.bennee@linaro.org>
Tested-by: zhang.lei <zhang.lei@jp.fujitsu.com>
Signed-off-by: Marc Zyngier <marc.zyngier@arm.com>
Diffstat (limited to 'tools/perf/scripts/python/exported-sql-viewer.py')
0 files changed, 0 insertions, 0 deletions