diff options
author | 2016-08-02 14:03:20 +1000 | |
---|---|---|
committer | 2016-09-08 12:21:44 +1000 | |
commit | 7b5f8272c792d49da73d98e9ca32f4cbb6d53808 (patch) | |
tree | 73db1ef35b75f5e92462e0e3f34a00844ec4c068 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | KVM: PPC: Book3S HV: Move struct kvmppc_vcore from kvm_host.h to kvm_book3s.h (diff) | |
download | wireguard-linux-7b5f8272c792d49da73d98e9ca32f4cbb6d53808.tar.xz wireguard-linux-7b5f8272c792d49da73d98e9ca32f4cbb6d53808.zip |
KVM: PPC: Book3S HV: Change vcore element runnable_threads from linked-list to array
The struct kvmppc_vcore is a structure used to store various information
about a virtual core for a kvm guest. The runnable_threads element of the
struct provides a list of all of the currently runnable vcpus on the core
(those in the KVMPPC_VCPU_RUNNABLE state). The previous implementation of
this list was a linked_list. The next patch requires that the list be able
to be iterated over without holding the vcore lock.
Reimplement the runnable_threads list in the kvmppc_vcore struct as an
array. Implement function to iterate over valid entries in the array and
update access sites accordingly.
Signed-off-by: Suraj Jitindar Singh <sjitindarsingh@gmail.com>
Signed-off-by: Paul Mackerras <paulus@ozlabs.org>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions