diff options
| author | Sean Christopherson <sean.j.christopherson@intel.com> | 2020-03-02 15:56:17 -0800 |
|---|---|---|
| committer | Paolo Bonzini <pbonzini@redhat.com> | 2020-03-16 17:58:04 +0100 |
| commit | 74fa0bc7f083fbcce1ee0b9c3c2716fcb068fce4 (patch) | |
| tree | d042d1ecf845edd075f3d4297c36384919bf5752 /tools/perf/scripts/python/net_dropmonitor.py | |
| parent | KVM: x86: Consolidate CPUID array max num entries checking (diff) | |
| download | linux-74fa0bc7f083fbcce1ee0b9c3c2716fcb068fce4.tar.gz linux-74fa0bc7f083fbcce1ee0b9c3c2716fcb068fce4.zip | |
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 <vkuznets@redhat.com>
Signed-off-by: Sean Christopherson <sean.j.christopherson@intel.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'tools/perf/scripts/python/net_dropmonitor.py')
0 files changed, 0 insertions, 0 deletions
