diff options
author | Janosch Frank <frankja@linux.vnet.ibm.com> | 2016-01-11 16:17:45 +0100 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2016-01-26 15:58:12 +0100 |
commit | 8d3b5ddc4e10eeda435c8f9ceecd15cd9ab284e7 (patch) | |
tree | 53983f858c94db3ea89f951444939e4a85dad6ed /kvm-stub.c | |
parent | 392a7fa3ca3fbd157cec6b58283c51cbd894d4fb (diff) | |
download | qemu-8d3b5ddc4e10eeda435c8f9ceecd15cd9ab284e7.zip qemu-8d3b5ddc4e10eeda435c8f9ceecd15cd9ab284e7.tar.gz qemu-8d3b5ddc4e10eeda435c8f9ceecd15cd9ab284e7.tar.bz2 |
scripts/kvm/kvm_stat: Cleanup of platform detection
s390 machines can also be detected via uname -m, i.e. python's
os.uname, no need for more complicated checks.
Calling uname once and saving its value for multiple checks is
perfectly sufficient. We don't expect the machine's architecture to
change when the script is running anyway.
On multi-cpu systems x86_init currently will get called multiple
times, returning makes sure we don't waste cicles on that.
Signed-off-by: Janosch Frank <frankja@linux.vnet.ibm.com>
Message-Id: <1452525484-32309-16-git-send-email-frankja@linux.vnet.ibm.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'kvm-stub.c')
0 files changed, 0 insertions, 0 deletions