KVM: arm/arm64: vgic: Replace spin_is_locked() with lockdep
mainline inclusion from mainline-v5.0-rc1 commit d4d592a6 category: feature feature: convert assertions of spin_is_locked() into lockdep_assert_held() ------------------------------------------------- lockdep_assert_held() is better suited to checking locking requirements, since it only checks if the current thread holds the lock regardless of whether someone else does. This is also a step towards possibly removing spin_is_locked(). Signed-off-by: NLance Roy <ldr709@gmail.com> Cc: Marc Zyngier <marc.zyngier@arm.com> Cc: Eric Auger <eric.auger@redhat.com> Cc: linux-arm-kernel@lists.infradead.org Cc: <kvmarm@lists.cs.columbia.edu> Signed-off-by: NPaul E. McKenney <paulmck@linux.ibm.com> Acked-by: NChristoffer Dall <christoffer.dall@arm.com> Signed-off-by: NZenghui Yu <yuzenghui@huawei.com> Reviewed-by: NHailiang Zhang <zhang.zhanghailiang@huawei.com> Signed-off-by: NLance Roy <ldr709@gmail.com> Signed-off-by: NPaul E. McKenney <paulmck@linux.ibm.com> Acked-by: NChristoffer Dall <christoffer.dall@arm.com> Signed-off-by: NZenghui Yu <yuzenghui@huawei.com> Signed-off-by: NYang Yingliang <yangyingliang@huawei.com>
Showing
想要评论请 注册 或 登录