Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp5489794imu; Wed, 19 Dec 2018 12:07:05 -0800 (PST) X-Google-Smtp-Source: AFSGD/XjKrUtLRVOmMMwJqYI9bix20oDTEJfikwTIiOQNU/X5J5xRxPVYdd2H5ABlwDuHp8PFpqr X-Received: by 2002:a63:c451:: with SMTP id m17mr18540936pgg.27.1545250025308; Wed, 19 Dec 2018 12:07:05 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1545250025; cv=none; d=google.com; s=arc-20160816; b=prJ2NUpYTHlvE10MB41s0SLpeI2EFE1EHKehsUScKvvIU7mh+opvvE5feIMivHchwf aRdAlm0zmH/fveCJEE387NI+AIpFwehkh+MIOMtvL8G2dSKlSR/5lfGO4zMfiqlklVGZ a7Ny2TehQC+2+K+KPLcYgQBdqOlzjL6DGiRDzJ7ttx9Elxa+7vOszToLt4e4xzRxft65 15gX1asXgqrDEIT8SNKq+jTWCcAPpkEFYmxvDwm3MlAKILEs0ugfpGlz40bDMFixdVpp 940eUtIe4RHVIiDnmrx+Ihf4ToZeiKpzkiYycfOfpNo6i+4cYxJdjg2iCgNtBpTcI/fI MI8g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=AkglJuc2XIN3wOx1w1H79rDZKUtuy9ZS7QChsA91hUg=; b=ZhEHu0xJ7GrldxpoMab1uJ2kwEqC+qdJf9e7vMo2VPbGXzFdGLj2Xxb0Gs1/Lv4a4v G0iwqqI4SogFNKpxsNwAsVzi0wfLwe7KPkkliiFVtj2VT3F95fQM8ZeHGe2gK216OBAd QrA296bS5lg037lsEgoH2FIdHDYHCyvSg8IhL5bDnwEHOZ7Hj/a8Fb38LtRihqsK5GFL GhNbH6ZfW05SjjiVau02/43459vlbh9fPxlRTCAiZSV2frjhsuK2crN8MHtkHckSYF9x nzHzuttdDuT3lZaR1sBnr+3b7NeeZqAirjyApFHiEiV/fpvczy1ZobwZMvxKnsj0LOVE 9e9w== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=mQbk5pYK; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id h31si16758217pgl.482.2018.12.19.12.06.38; Wed, 19 Dec 2018 12:07:05 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=mQbk5pYK; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729809AbeLSQ2n (ORCPT + 99 others); Wed, 19 Dec 2018 11:28:43 -0500 Received: from bombadil.infradead.org ([198.137.202.133]:60608 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727705AbeLSQ2m (ORCPT ); Wed, 19 Dec 2018 11:28:42 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20170209; h=In-Reply-To:Content-Type:MIME-Version :References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=AkglJuc2XIN3wOx1w1H79rDZKUtuy9ZS7QChsA91hUg=; b=mQbk5pYKmg2QJGn9Bz8U/VItV MYTH3GTd1kClHHCjHCWgITTDd59h1Hm+8ZTP8jbruUCi7IKi8KgZNurcqyBXPT1wFowflO37hgDVw b49zBt75z9wT9jG/9b3wOItoD0cxmdY02R8C5M2EuOU3iXLkV+w1YEevbR75wgG27baukhN/Ll8T6 Bt2KU/zlvUnhBXDjr9okZ8wDfxgRWdU4TGOPBsK5IkqSv8ohbifTTE9gknXqkcvIrvdS9DAakKAeC cNylRl1i0bethdGctyweeUOne7n6cUncwHIId7p6/bCKqWxuwaCMpjr67MaSd+tToLyuM2SeZkl6u D9sA3pEtw==; Received: from hch by bombadil.infradead.org with local (Exim 4.90_1 #2 (Red Hat Linux)) id 1gZei4-0002ji-Mr; Wed, 19 Dec 2018 16:28:36 +0000 Date: Wed, 19 Dec 2018 08:28:36 -0800 From: Christoph Hellwig To: Anup Patel Cc: Christoph Hellwig , Palmer Dabbelt , Albert Ou , Daniel Lezcano , Thomas Gleixner , Jason Cooper , Marc Zyngier , Atish Patra , linux-riscv@lists.infradead.org, "linux-kernel@vger.kernel.org List" Subject: Re: [PATCH v3 3/6] irqchip: sifive-plic: More flexible plic_irq_toggle() Message-ID: <20181219162836.GA9224@infradead.org> References: <20181130080207.20505-1-anup@brainfault.org> <20181130080207.20505-4-anup@brainfault.org> <20181217182719.GC7086@infradead.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.9.2 (2017-12-15) X-SRS-Rewrite: SMTP reverse-path rewritten from by bombadil.infradead.org. See http://www.infradead.org/rpr.html Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Dec 18, 2018 at 02:20:10PM +0530, Anup Patel wrote: > Actually these functions should not be inline because plic_toggle() uses > raw_spin_lock() and plic_irq_toggle() uses for-loop. So? It still inlines the all of two instances into each caller for slightly different but related work. Not sure it is 100% worth it, but probably more than the one to move the calculations to init time..