Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp780093ybl; Thu, 12 Dec 2019 04:54:42 -0800 (PST) X-Google-Smtp-Source: APXvYqzsUXJWqDshpfY9ryKKD/Z4Vfl6hejOYrk+pqZtLSge5S3H/E2O7grjNYIUzDGtn9j7c2Uq X-Received: by 2002:a05:6830:160c:: with SMTP id g12mr7807108otr.82.1576155282727; Thu, 12 Dec 2019 04:54:42 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1576155282; cv=none; d=google.com; s=arc-20160816; b=LCWhGnETgrN7DV5uAHyujD5iqlim90cX3sQRlorDrgjwJoTSXq0tkYGrDOcmnvrxX0 AfoUpn1LhxHiyeYx+aliLfHVimlV1RDqn0NQfTIlP/lzti9z0aB2Ux+0su3BKN+Agume WayGkV9xHwrNBT9XZaw+1R3VaYaTpuiyeWZ4cuexUSg2KdQDob+zxRwBNDIhQ+h+wLtw VzLUPOjU6+i2UcIZ5qn+1stn8u2MuDwM1XDbt0ei6ZB7GKF212LfOxtzNH3JeX/9l1uD TVneQI9AM3v8zIloGmJKsbNR6jfXDn2fJ2O//+DNThFMuR2ElNC5hGZmlrckfdBCqt7I Q4vg== 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=7pKItzcvRmGDzsdHn+yvX60yz4s7uBXmcUGpY7N6CTM=; b=ngqJkvRds52KjpjC3axGnGPWmJYO/Gu2M4Xo2WZKiazUMv9lr75BmDzazEzvAnEC1r 0YB0losBvXa4zO0Zbo4qlR+GA6bB/ACjkgNjVcBR39lsu844HEDqcs3I7F+ADDjMa6f8 omG9KmSBMyk6Ar0HrYwm3c7hf7MDaeClDCstn+7ebUFKJ7rzQ8Gd/sw9In7rLm8Ci40u tJhK9tU5Y+kZUf3UZtmyBA0PpyJCVrwlaPPVcmkwici+Q6pb4w7hCtm5eGcz5h4zBaoD rg/TjW7ZXfOvd92Nb5qmyTvA8KphYb8Vt/7syid+UlAHR3IN1OIPUNOdZaNpX9jEIwBS zzbg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=K4OU1h42; 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 h139si2970897oib.85.2019.12.12.04.54.30; Thu, 12 Dec 2019 04:54:42 -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=K4OU1h42; 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 S1729331AbfLLMwf (ORCPT + 99 others); Thu, 12 Dec 2019 07:52:35 -0500 Received: from bombadil.infradead.org ([198.137.202.133]:58008 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729226AbfLLMwf (ORCPT ); Thu, 12 Dec 2019 07:52:35 -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=7pKItzcvRmGDzsdHn+yvX60yz4s7uBXmcUGpY7N6CTM=; b=K4OU1h42I6mEbHwlvyklqn6cb FeGoZALO7xdzfBOOlkAnvlULbEYj+/iHLfIM6ARigU02mXABboBgIQVWyzsK5rrNpNPQOq/vvSNCT RgoDzm3SSeaSg3M6i33ZTu38MRICswGbWYmGwempGNUpBy4LsdkkzBaMQsc34TV8nKAi5r336d5YE s0S0UV3I7x1JzSOmsx0e0TOS9S5uKiDGlGnLYbTdkfLH6Lox5NZRMjjHxCtADnGxcnGlSuC/tsT6W yt4er2iiIv7+fCe8H+/fcF3esBCC73FSOsp4ndJZN8ECXxmkG6X6WTFce3HtCKaDpbH0t+LVcfVin krKAgJHWA==; Received: from hch by bombadil.infradead.org with local (Exim 4.92.3 #3 (Red Hat Linux)) id 1ifNx8-0002KC-Ty; Thu, 12 Dec 2019 12:52:22 +0000 Date: Thu, 12 Dec 2019 04:52:22 -0800 From: Christoph Hellwig To: Christophe Leroy Cc: Benjamin Herrenschmidt , Paul Mackerras , Michael Ellerman , linuxppc-dev@lists.ozlabs.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v5] powerpc/irq: inline call_do_irq() and call_do_softirq() on PPC32 Message-ID: <20191212125222.GB3381@infradead.org> References: <72a6cd86137b2a7ab835213cf5c74df6ed2f6ea7.1575739197.git.christophe.leroy@c-s.fr> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <72a6cd86137b2a7ab835213cf5c74df6ed2f6ea7.1575739197.git.christophe.leroy@c-s.fr> User-Agent: Mutt/1.12.1 (2019-06-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 Sat, Dec 07, 2019 at 05:20:04PM +0000, Christophe Leroy wrote: > call_do_irq() and call_do_softirq() are simple enough to be > worth inlining. > > Inlining them avoids an mflr/mtlr pair plus a save/reload on stack. > It also allows GCC to keep the saved ksp_limit in an nonvolatile reg. > > This is inspired from S390 arch. Several other arches do more or > less the same. The way sparc arch does seems odd thought. Any reason you only do this for 32-bit and not 64-bit as well?