Received: by 2002:a05:6a10:a841:0:0:0:0 with SMTP id d1csp3615970pxy; Mon, 26 Apr 2021 06:04:10 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxgzUX5kFTKplzgC0DPfXH0tdERO+ux8o6LqlnBk8PvnCca2Y+nApLfF3a/SA3voXr5Dctx X-Received: by 2002:a63:5326:: with SMTP id h38mr4915923pgb.130.1619442249151; Mon, 26 Apr 2021 06:04:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1619442249; cv=none; d=google.com; s=arc-20160816; b=Cc9nGONsCqdmQH7n2eHTrN2XUORVq7tBuH2A2K79Xjmzf/WTvAB3oxgiPoigRBKgo9 e/esE6tpLPm8g5Bw/jnogmTt1JXgLYSy/g7uBiypTWgZlWZf2KKZQO2R5PEqluptbS4S 2c9eQwBPeqsZj5rMiLdJYVqyseXH6Oe0AFp9nRIgpQ4Rv5UuoMboU44K4JAopcAi5AY9 9E31tG7KjxDsNiWYaHkxSg5vLupYNGGyu5+/0z3JPnyJFvUW9SOm2lA2RhjOmqnhUKBh wVyl/BsO7epceEBe07STd8/1W3TmRBbAvDr1xfJL77UqE/YrcLCUyrpsqHX5wEztv4PM VUhg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=lQ4s3Q/Tyqv2Nxgr8pGNRBAS74lJ6B3xncZlqaTXtfo=; b=vsMC0DSbs9L7PM4inSanDBCtRGCjDdAMtLUvpSPhAJ58b1vj1wYXO9h/+l2Z5iYYh2 iQ+H2MBJP5yOiV1kcK3BiKKnXP+h5qH89ER6fR+pzJTCGTXPlAaZsHjIgNKNefzhJFh4 gMfpsp3evbmzFGhqnEtw7ZRWVHbiN6Tg3bOsw0Ov1riUrfYjevpLf0hlNR3fxz929+P7 FxwsjZAi6e3j0t7RfGR3kFiJaSZmX9bNaK/gOBagJljVwkfvLbux4DSaq6IW+n1DHJNC p2b0VGM2dNVUJMMLBtkPHEVL5dB9xvZzOCs+sB5iDR4us9metqs0RMsJIU/Wj+uDT/Q6 0gBw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id 81si8747394pfb.53.2021.04.26.06.03.55; Mon, 26 Apr 2021 06:04:09 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233628AbhDZNCU (ORCPT + 99 others); Mon, 26 Apr 2021 09:02:20 -0400 Received: from elvis.franken.de ([193.175.24.41]:43655 "EHLO elvis.franken.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233593AbhDZNCT (ORCPT ); Mon, 26 Apr 2021 09:02:19 -0400 Received: from uucp (helo=alpha) by elvis.franken.de with local-bsmtp (Exim 3.36 #1) id 1lb0rm-0001U1-00; Mon, 26 Apr 2021 15:01:34 +0200 Received: by alpha.franken.de (Postfix, from userid 1000) id DF10CC0BBF; Mon, 26 Apr 2021 15:00:05 +0200 (CEST) Date: Mon, 26 Apr 2021 15:00:05 +0200 From: Thomas Bogendoerfer To: zhouchuangao Cc: Florian Fainelli , bcm-kernel-feedback-list@broadcom.com, linux-mips@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] MIPS: BCM63XX: Use BUG_ON instead of condition followed by BUG. Message-ID: <20210426130005.GA9176@alpha.franken.de> References: <1619279992-81335-1-git-send-email-zhouchuangao@vivo.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1619279992-81335-1-git-send-email-zhouchuangao@vivo.com> User-Agent: Mutt/1.10.1 (2018-07-13) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, Apr 24, 2021 at 08:59:50AM -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 > --- > arch/mips/bcm63xx/gpio.c | 9 +++------ > 1 file changed, 3 insertions(+), 6 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 ]