]> git.baikalelectronics.ru Git - kernel.git/commit
MIPS: BCM63XX: Use BUG_ON instead of condition followed by BUG.
authorzhouchuangao <zhouchuangao@vivo.com>
Sat, 24 Apr 2021 15:59:50 +0000 (08:59 -0700)
committerThomas Bogendoerfer <tsbogend@alpha.franken.de>
Mon, 26 Apr 2021 08:23:52 +0000 (10:23 +0200)
commit000b233ae8147fd22e47b9858b4543ffb486c521
tree1db952de1a126cc73d5f4bec00a705292b5c187f
parent2dae28e5d5cf43cce1a140ed184f8c42d0c5d538
MIPS: BCM63XX: Use BUG_ON instead of 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>
Acked-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
arch/mips/bcm63xx/gpio.c