aboutsummaryrefslogtreecommitdiff
path: root/hw/watchdog
diff options
context:
space:
mode:
authorPaolo Bonzini <pbonzini@redhat.com>2015-03-21 16:32:05 +0100
committerPaolo Bonzini <pbonzini@redhat.com>2015-03-25 13:37:10 +0100
commit8a5956ad6392f115521dad774055c737c49fb0dd (patch)
tree7c9b30c6fefc1ee2a6d484b44fa2a863e54ebe44 /hw/watchdog
parent549c4e49788bbb16bdac3fb5480a2177019899e2 (diff)
downloadqemu-8a5956ad6392f115521dad774055c737c49fb0dd.zip
qemu-8a5956ad6392f115521dad774055c737c49fb0dd.tar.gz
qemu-8a5956ad6392f115521dad774055c737c49fb0dd.tar.bz2
rcu tests: fix compilation on 32-bit ppc
32-bit PPC cannot do atomic operations on long long. Inside the loops, we are already using local counters that are summed at the end of the run---with some exceptions (rcu_stress_count for rcutorture, n_nodes for test-rcu-list): fix them to use the same technique. For test-rcu-list, remove the mostly unused member "val" from the list. Then, use a mutex to protect the global counts. Performance does not matter there because every thread will only enter the critical section once. Remaining uses of atomic instructions are for ints or pointers. Reported-by: Andreas Faerber <afaerber@suse.de> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'hw/watchdog')
0 files changed, 0 insertions, 0 deletions