]> git.ipfire.org Git - thirdparty/linux.git/commit
LoongArch: KVM: Use standard bitops API with eiointc
authorBibo Mao <maobibo@loongson.cn>
Mon, 21 Jul 2025 01:26:32 +0000 (09:26 +0800)
committerHuacai Chen <chenhuacai@loongson.cn>
Mon, 21 Jul 2025 01:26:32 +0000 (09:26 +0800)
commitd23bd878f6ea9cff93104159356e012a8b2bbfaf
treeaa39c58d0a5fea470e7b312c453049e085b3a8e0
parent9afce1f1ee1f687b5ba16de87224ddcfadca3e93
LoongArch: KVM: Use standard bitops API with eiointc

Standard bitops APIs such test_bit() is used here, rather than manually
calculating the offset and mask. Also use non-atomic API __set_bit() and
__clear_bit() rather than set_bit() and clear_bit(), since the global
spinlock is held already.

Signed-off-by: Bibo Mao <maobibo@loongson.cn>
Signed-off-by: Huacai Chen <chenhuacai@loongson.cn>
arch/loongarch/kvm/intc/eiointc.c