diff options
author | 2016-06-09 13:06:08 +0200 | |
---|---|---|
committer | 2016-08-04 13:52:21 +0200 | |
commit | 3aed64f6d341cdb62bb2d6232589fb13448ce063 (patch) | |
tree | 33c7906993c84a861d4575a19a667bb5d8749046 /tools/perf/util/scripting-engines/trace-event-python.c | |
parent | Revert "ACPI / hotplug / PCI: Runtime resume bridge before rescan" (diff) | |
download | wireguard-linux-3aed64f6d341cdb62bb2d6232589fb13448ce063.tar.xz wireguard-linux-3aed64f6d341cdb62bb2d6232589fb13448ce063.zip |
pvclock: introduce seqcount-like API
The version field in struct pvclock_vcpu_time_info basically implements
a seqcount. Wrap it with the usual read_begin and read_retry functions,
and use these APIs instead of peppering the code with smp_rmb()s.
While at it, change it to the more pedantically correct virt_rmb().
With this change, __pvclock_read_cycles can be simplified noticeably.
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'tools/perf/util/scripting-engines/trace-event-python.c')
0 files changed, 0 insertions, 0 deletions