[PATCH] MIPS: BCM63XX: Use BUG_ON instead of condition followed by BUG.

Florian Fainelli f.fainelli at gmail.com
Sun Apr 25 02:03:41 BST 2021



On 4/24/2021 8:59 AM, zhouchuangao wrote:
> 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 at vivo.com>

Acked-by: Florian Fainelli <f.fainelli at gmail.com>
-- 
Florian



More information about the linux-arm-kernel mailing list