OSDN Git Service

cputlb: remove tb_lock from tlb_flush functions
authorEmilio G. Cota <cota@braap.org>
Fri, 4 Aug 2017 22:58:37 +0000 (18:58 -0400)
committerRichard Henderson <richard.henderson@linaro.org>
Fri, 15 Jun 2018 18:18:48 +0000 (08:18 -1000)
commitb7542f7fe8f879b7b1e74f5fbd36b5746dbb6712
treea9d90c40d4dced207dc5ea8bf3083661012ff1e1
parent194125e3ebd553acb02aaf3797a4f0387493fe94
cputlb: remove tb_lock from tlb_flush functions

The acquisition of tb_lock was added when the async tlb_flush
was introduced in e3b9ca810 ("cputlb: introduce tlb_flush_* async work.")

tb_lock was there to allow us to do memset() on the tb_jmp_cache's.
However, since f3ced3c5928 ("tcg: consistently access cpu->tb_jmp_cache
atomically") all accesses to tb_jmp_cache are atomic, so tb_lock
is not needed here. Get rid of it.

Reviewed-by: Alex Bennée <alex.bennee@linaro.org>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Signed-off-by: Emilio G. Cota <cota@braap.org>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
accel/tcg/cputlb.c