[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20210621095354.GD4425@alpha.franken.de>
Date: Mon, 21 Jun 2021 11:53:54 +0200
From: Thomas Bogendoerfer <tsbogend@...ha.franken.de>
To: zhouchuangao <zhouchuangao@...o.com>
Cc: Huacai Chen <chenhuacai@...nel.org>,
Aleksandar Markovic <aleksandar.qemu.devel@...il.com>,
linux-mips@...r.kernel.org, kvm@...r.kernel.org,
linux-kernel@...r.kernel.org
Subject: Re: [PATCH] mips/kvm: Use BUG_ON instead of if condition followed by
BUG
On Fri, Apr 23, 2021 at 01:35:09AM -0700, 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@...o.com>
> ---
> arch/mips/kvm/tlb.c | 3 +--
> 1 file changed, 1 insertion(+), 2 deletions(-)
applied to mips-next.
Thomas.
--
Crap can work. Given enough thrust pigs will fly, but it's not necessarily a
good idea. [ RFC1925, 2.3 ]
Powered by blists - more mailing lists