Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp4184011imm; Wed, 5 Sep 2018 12:06:08 -0700 (PDT) X-Google-Smtp-Source: ANB0VdbE2Nd4iFEMfDZsj6j8peiqk6SFy+oNPfRfiuEOgELSNA70PPg1y7jsK2hMmkQGR57RwaGG X-Received: by 2002:a17:902:e5:: with SMTP id a92-v6mr16963930pla.273.1536174368414; Wed, 05 Sep 2018 12:06:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1536174368; cv=none; d=google.com; s=arc-20160816; b=u+JTH/Y6qhW6Uh0jUbR6jMZpHTZ8pqJgKLzwOMIKoSr+YvgwFHiXwAPnypaWfdcEL7 XNaqPGhJDCb2HkM9qSKbevxijlQtbpN4Cqo2xKpaLoFPddtgmEp7RVbWbOHxTrSup7f2 44teatgO8TxcHm0F3hZc+swmeY427olBemofw+j5vIgQ06vCWhf1nIpEARKlttxTD4Pp sFHihpwVm/tlklimvzkMT+aQjuTANnW304mzVanBeVrBPtSh6BmzkEqksrsQf7DoFv6+ cJrCGfs/7yD5PqLYjWgCybDBIgNU3nA65t1HDNbx34O41qGp4RuD9G9+nnV/3FIU/MPU 931w== 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=Yy0aMVqxjghhI1mKLB2JyahWgF+sX+OHPJUlDSzKOv4=; b=LfdBQbiYjc3JvRZtRPRXeV1UCOCGTBPAb6QO/4InmKg85ldBT4P1E9YLFV1rlCWjFv ygG9Oe8XCC8UUxHbJFc/CBLQUCnISYDA4Del2lRbkMov86zSrqiwrgI5jNqNewPXmPJW KD2kCHLEWEoPz2yYYXOatZHhsH7fee2jch14bC5p5iXUQHkDEQQEE19dBOzRLdNunPoq 1LB1mQcTjnyzAqBp7eWTPjYnfOab0qzwmmn43sWt3kKc8D2rU5Tbx3MbomIHA8WDudXk ueAn6reAjyoWIwdW8Eocp5Hr9Cq20m3maNfmdibw6WyXcH2Mw7gHgzMPvPJgFlpZN5S9 plTQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=bPkic7G5; 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 w7-v6si2804549plq.198.2018.09.05.12.05.53; Wed, 05 Sep 2018 12:06:08 -0700 (PDT) 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=bPkic7G5; 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 S1727703AbeIEXfW (ORCPT + 99 others); Wed, 5 Sep 2018 19:35:22 -0400 Received: from bombadil.infradead.org ([198.137.202.133]:46748 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727477AbeIEXfW (ORCPT ); Wed, 5 Sep 2018 19:35:22 -0400 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=Yy0aMVqxjghhI1mKLB2JyahWgF+sX+OHPJUlDSzKOv4=; b=bPkic7G5PWCu+KlH6OBJvNuKr XSRapgcPXbg/qMvOG/U/tQIVdNEFKFPjWN4BdB9GXZXttDBX0AFQC1Ovk/pIou0/sA2J+vNZl1G2A r1SrRbOeRLMabLwwutRDm1G+ySun04FmODi398PQm6gdlgvkckY3gg7gAQqcYSOFp0U+l2NXVKZx1 awZW//Wf53bOmWEokM390p6jINeLmBIC6/0Z4w8P2olNLrUV1YQO+el9bXdEe4+7Enc3OeF6imjpg UW0UQFeF9kGJ4eSgsYqCrGRqKUw9Vsrbn7FpqC+jZALPAUz/l6MVwg3emglDe4o61CxL8t2vUrf3i p1f+UbQ+A==; Received: from hch by bombadil.infradead.org with local (Exim 4.90_1 #2 (Red Hat Linux)) id 1fxd5j-0000lB-E1; Wed, 05 Sep 2018 19:03:51 +0000 Date: Wed, 5 Sep 2018 12:03:51 -0700 From: Christoph Hellwig To: Atish Patra Cc: Christoph Hellwig , "mark.rutland@arm.com" , "damein@vger.kernel.org" , "anup@brainfault.org" , "palmer@sifive.com" , "linux-kernel@vger.kernel.org" , "linux-riscv@lists.infradead.org" , "tglx@linutronix.de" Subject: Re: [PATCH v2 2/3] RISC-V: Use Linux logical cpu number instead of hartid Message-ID: <20180905190351.GB1420@infradead.org> References: <1535445370-19004-1-git-send-email-atish.patra@wdc.com> <1535445370-19004-3-git-send-email-atish.patra@wdc.com> <20180831061104.GB19292@infradead.org> <20180904213654.GB2078@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, Sep 04, 2018 at 02:43:13PM -0700, Atish Patra wrote: > On 9/4/18 2:36 PM, Christoph Hellwig wrote: > > On Tue, Sep 04, 2018 at 01:35:10PM -0700, Atish Patra wrote: > > > sure. How about this ? > > > > That would work, but why not just keep calling sbi_remove_sfence_vma > > directly from flush_tlb_all? > > > I guess that's fine too. I just wanted to keep all flush_tlb_* same format > to make it more coherent. I'd just keep it simple by calling directly. While the compiler would probably optimize away the branch in an inline function we can just avoid it entirely that way.