]> git.baikalelectronics.ru Git - kernel.git/commit
mips/kvm: Use BUG_ON instead of if condition followed by BUG
authorzhouchuangao <zhouchuangao@vivo.com>
Fri, 23 Apr 2021 08:35:09 +0000 (01:35 -0700)
committerThomas Bogendoerfer <tsbogend@alpha.franken.de>
Mon, 21 Jun 2021 09:40:54 +0000 (11:40 +0200)
commitcb5a3f05d299840b625dc6e3348e4bb2d58cf94d
tree694b2450e3075b0265bd649b6a4597a3118228a1
parentca46a50ac5c4c75eb71a1d2ff9ca15707012d67b
mips/kvm: Use BUG_ON instead of if condition followed by BUG

BUG_ON uses unlikely in if(), it can be optimized at compile time.

Usually, the condition in if() is not satisfied. In my opinion,
this can improve the efficiency of the multi-stage pipeline.

Signed-off-by: zhouchuangao <zhouchuangao@vivo.com>
Signed-off-by: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
arch/mips/kvm/tlb.c