summaryrefslogtreecommitdiffstats
path: root/scripts/switch-timer-api
diff options
context:
space:
mode:
authorGuillaume Delbergue2016-06-08 20:55:23 +0200
committerRichard Henderson2016-06-12 01:10:18 +0200
commitac9a9eba1e43c5354905c0c7f8e17852ed396ac2 (patch)
tree97891a6037c6c942d770c3aba6c945d916a9fecc /scripts/switch-timer-api
parentinclude/processor.h: define cpu_relax() (diff)
downloadqemu-ac9a9eba1e43c5354905c0c7f8e17852ed396ac2.tar.gz
qemu-ac9a9eba1e43c5354905c0c7f8e17852ed396ac2.tar.xz
qemu-ac9a9eba1e43c5354905c0c7f8e17852ed396ac2.zip
qemu-thread: add simple test-and-set spinlock
Reviewed-by: Sergey Fedorov <sergey.fedorov@linaro.org> Signed-off-by: Guillaume Delbergue <guillaume.delbergue@greensocs.com> [Rewritten. - Paolo] Signed-off-by: Paolo Bonzini <pbonzini@redhat.com> [Emilio's additions: use TAS instead of atomic_xchg; emit acquire/release barriers; return bool from trylock; call cpu_relax() while spinning; optimize for uncontended locks by acquiring the lock with TAS instead of TATAS; add qemu_spin_locked().] Signed-off-by: Emilio G. Cota <cota@braap.org> Message-Id: <1465412133-3029-6-git-send-email-cota@braap.org> Signed-off-by: Richard Henderson <rth@twiddle.net>
Diffstat (limited to 'scripts/switch-timer-api')
0 files changed, 0 insertions, 0 deletions