diff options
| author | Sean Christopherson <[email protected]> | 2020-03-02 15:56:17 -0800 |
|---|---|---|
| committer | Paolo Bonzini <[email protected]> | 2020-03-16 17:58:04 +0100 |
| commit | 74fa0bc7f083fbcce1ee0b9c3c2716fcb068fce4 (patch) | |
| tree | d042d1ecf845edd075f3d4297c36384919bf5752 /tools/perf/scripts/python/check-perf-trace.py | |
| parent | aa10a7dc8858f6cbd1ef5cb86693592896ee27c7 (diff) | |
KVM: x86: Hoist loop counter and terminator to top of __do_cpuid_func()
Declare "i" and "max_idx" at the top of __do_cpuid_func() to consolidate
a handful of declarations in various case statements.
More importantly, establish the pattern of using max_idx instead of e.g.
entry->eax as the loop terminator in preparation for refactoring how
entry is handled in __do_cpuid_func().
No functional change intended.
Reviewed-by: Vitaly Kuznetsov <[email protected]>
Signed-off-by: Sean Christopherson <[email protected]>
Signed-off-by: Paolo Bonzini <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/check-perf-trace.py')
0 files changed, 0 insertions, 0 deletions