Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp6999567imu; Thu, 27 Dec 2018 10:15:41 -0800 (PST) X-Google-Smtp-Source: ALg8bN6xPn5UzcKqmgRn06ovsUtlTilPmM2K1zUOOLhocCB8+6uztxt/RGOHU0FGrK6vy2i/IQjL X-Received: by 2002:a63:2bc4:: with SMTP id r187mr23303041pgr.306.1545934541132; Thu, 27 Dec 2018 10:15:41 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1545934541; cv=none; d=google.com; s=arc-20160816; b=P8uKjkdLYsHGpwexmbf/Hsu18evVrQjSdzJJaAm2jT+X8rA5PzhIsgq4+ZJJXKxk+w O2tw3vw1nw3rRRyx4O6CRy73FketFNXzRtTzoALiwXVRv5tm+awNuJBRwBpWE4iCWTnk DoGRkuVOpQ9AJNx38LgH7mBohI32ZcSnmG1mFP1PqxSRns+lDzB/UOr2FH68fTeZFNXm v6fEwgdCcQFMS0oZKsG65+/AOn9ELtjPRzu6TQbV/GX3sNqyI2U7Pl5YfnoECeJzfv5E OYruhHm/f0n95MU0EFcxtSXsdGPa8kE5/TQCfb/G3tJDRyweY/OkxS88YIFvWpGV0zey htTg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=sZzhCcAgXuw19vxX6fyr918Uz0Jrox7YQDyO5SQd/Ks=; b=FD4V3r25oTQo4MEtYWiOmfLSR0lDr9WNcao01OmbGcyhP0IRgkSgksZ4TkSe1UL8S/ nG50b1JWMCY5MceEDcjCjKV/8Ahz2wPn9jhlfM/uK1NlDj/6O2LUC0PxrpkfWmGbS3SM IpLSBtT1UG0Z+D3bK0pRyT38Tzn6LsIiIqkfBo7mp1nHR4Or5eQoU5ii2erjr4355Zw5 kbldjOGi9HArm9dYg4sSHdemBTXW+4HWFIbnCunuyRpCqAoluscLpGc0z95faS42TXZD z03zR7BBQk0FUAHUqeAzbZQqQ8dZ9D1xxhDQIgQxzHgZrPfbG8WK5Zd3S1myT3F2H1cz 41mA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@brainfault-org.20150623.gappssmtp.com header.s=20150623 header.b=2LHTUQma; 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 u69si36738912pfj.219.2018.12.27.10.15.24; Thu, 27 Dec 2018 10:15:41 -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=pass header.i=@brainfault-org.20150623.gappssmtp.com header.s=20150623 header.b=2LHTUQma; 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 S1728126AbeL0F1q (ORCPT + 99 others); Thu, 27 Dec 2018 00:27:46 -0500 Received: from mail-wr1-f67.google.com ([209.85.221.67]:43370 "EHLO mail-wr1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726055AbeL0F1p (ORCPT ); Thu, 27 Dec 2018 00:27:45 -0500 Received: by mail-wr1-f67.google.com with SMTP id r10so17213037wrs.10 for ; Wed, 26 Dec 2018 21:27:44 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=brainfault-org.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=sZzhCcAgXuw19vxX6fyr918Uz0Jrox7YQDyO5SQd/Ks=; b=2LHTUQmaZpLDzZob5MnpMtup26i4+NRGqEbSMZsqZo7CDD/MQP/e0Fr2NGvDG0zLNR jrHYViSl5KaV7af3Cgd5dYXSHlkn9TgsisDtKl3htS4XaJGJsuiC/NhVRw+pHy3DMYSK AC1FHjY8Gu7MDzCsY0R6skLZJuEnmxgDuSK4pdNDkcPyGtsZ0CPk0hHrXXREXOAewZGp Y3adL0QmZMGKp0w1I3GttHgRlCoxeqxfb4fHV8acs/PiSRHVaRg2zKjMntzAD0M1CU2v KIO9CvxjYJF4AxVuwaEly8Obu2us0lSlXbCLTO1k7aFPa7JN5wb+7sRWqoQBMqdP/Zy1 wIgg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=sZzhCcAgXuw19vxX6fyr918Uz0Jrox7YQDyO5SQd/Ks=; b=el932CPqlsz2SgRy1iVn+W6SwODZ4I3iVfAVD6QIKr+xDKDullUOFTvQQpon7ULssW iCTgfJp+i9ri3WbAbAgUZgSc3lXMS6lvIQf6a+KJ7AKnlrcTaTPWTq36l+GyjR/+GGYC ScY5BPhwiVaZ53suQWK7gDxDz+2DwXCHXpfeCi6m9jquFjisgJo4mWL7MZCFCplVQpz1 a8guDYJrqgeEvdGI8VwWxdBeDis3TifEPqLZwvALWoLGurXiCv/893smE5cdvkAB0RtZ 0zOGP6RmlSngcbhL/x8JZqdIM/LCLKaJ8RZHlk7NcjpiNT0s4iglzXescn6mdZRaaU/j yxaw== X-Gm-Message-State: AJcUuke1vXE1m5DLBhla5UqTPncd670OXqBqsDldg9RNvmFl81fEOqqd 831mCgETgBT6DQCdNbjW/VpvMFNk6KTujBC/rqoAtg== X-Received: by 2002:adf:91a3:: with SMTP id 32mr18886340wri.99.1545888463992; Wed, 26 Dec 2018 21:27:43 -0800 (PST) MIME-Version: 1.0 References: <20181130080207.20505-1-anup@brainfault.org> <20181130080207.20505-4-anup@brainfault.org> <20181217182719.GC7086@infradead.org> <20181219162836.GA9224@infradead.org> In-Reply-To: <20181219162836.GA9224@infradead.org> From: Anup Patel Date: Thu, 27 Dec 2018 10:57:33 +0530 Message-ID: Subject: Re: [PATCH v3 3/6] irqchip: sifive-plic: More flexible plic_irq_toggle() To: Christoph Hellwig Cc: 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" Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Dec 19, 2018 at 9:58 PM Christoph Hellwig wrote: > > 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.. Not just at init time but these functions will also be used when irq_affinity is changed by IRQ balancer at runtime. Regards, Anup