Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp516035imm; Wed, 6 Jun 2018 01:19:09 -0700 (PDT) X-Google-Smtp-Source: ADUXVKI0y3CI6Zg2hJXZoZNVcLo90IFKBkFymFlLkx0vWnLUGH+pQ2+vsmPBVyW/MngWy0sHhBtf X-Received: by 2002:a62:4ad3:: with SMTP id c80-v6mr1486625pfj.23.1528273149037; Wed, 06 Jun 2018 01:19:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1528273149; cv=none; d=google.com; s=arc-20160816; b=uN+o0tt16hnPmGaVRhCkxDiKa+VH1E4lkuUp0cwX3BKlNLB0tGnD5pfPcCCA/a2Lj8 yqYsmhmK8JMKrr81FrlF0T13hN9lbHSK6PrIeq6DH4uZLQ1+foTDTwTvrL4pIf8n3a9F Cr9SXb47cIyRMmLPGb/71JrfT1IpOc3aq7gHd6nzTdcHr6WNI3l0nX0jRHtgnirKrtIz jRG9Tgs10si7bKQ8fcN6N9b6xz9+tUrAHS2Xqsn/mhJgFzZkBkm66gfrvd2lvVV7f1jc fgnQ/apuMiGkCaVoK4AMMfBGDR/WJAM55OORoqvO3JIny/H5nkdev1lyMO0gb2Z4WX/+ Zbzg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:arc-authentication-results; bh=PWR5GkDm6ySZ3KEmbki3+ddRWhZ2RgN3eO6BS42W5cE=; b=SXX+aCEJArubVx1JIYeCMEjfLTq9ICoOIp5HNtuCZ8nL0C43JqdVujUaoYU44KwnXc hjfh4okE/HdmYEKMkCTupxpJlJ1ZETkSONKCwJ75nIbeqJHrSyvCBO2Zo0yCIHDfnqMZ gGX9mhiRAVYyKx/3rSPmB1n3MikjjdYUKtTFX3A0Ep5kv3KXfLtHlAXwpB+6b1NzBjP2 +gx7LT2Fv2LqiXh9aMlfKIU0HLuUaYXEEhjSDEM77A9R3iMUAkEiPvnFDEcsZTx5ElT8 5CwUqtb6u9QPKaKCGw1qZI/PkKKqaM/G5sl6IWyYNioL3XxL7fBMuW9NgxJti8TCJcj0 1n4g== ARC-Authentication-Results: i=1; mx.google.com; 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 s204-v6si7290951pgs.280.2018.06.06.01.18.54; Wed, 06 Jun 2018 01:19: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; 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 S932417AbeFFISY (ORCPT + 99 others); Wed, 6 Jun 2018 04:18:24 -0400 Received: from mail.cn.fujitsu.com ([183.91.158.132]:3004 "EHLO heian.cn.fujitsu.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S932340AbeFFISW (ORCPT ); Wed, 6 Jun 2018 04:18:22 -0400 X-IronPort-AV: E=Sophos;i="5.43,368,1503331200"; d="scan'208";a="40794049" Received: from unknown (HELO cn.fujitsu.com) ([10.167.33.5]) by heian.cn.fujitsu.com with ESMTP; 06 Jun 2018 16:18:14 +0800 Received: from G08CNEXCHPEKD03.g08.fujitsu.local (unknown [10.167.33.85]) by cn.fujitsu.com (Postfix) with ESMTP id 0453A48029E5; Wed, 6 Jun 2018 16:18:11 +0800 (CST) Received: from localhost.localdomain (10.167.226.106) by G08CNEXCHPEKD03.g08.fujitsu.local (10.167.33.89) with Microsoft SMTP Server (TLS) id 14.3.399.0; Wed, 6 Jun 2018 16:18:11 +0800 Subject: Re: [patch 3/8] x86/apic: Provide apic_ack_irq() To: Thomas Gleixner CC: LKML , Ingo Molnar , Peter Zijlstra , Borislav Petkov , Dmitry Safonov <0x7f454c46@gmail.com>, Tariq Toukan , Song Liu , Joerg Roedel , Mike Travis , References: <20180604162224.471925894@linutronix.de> <94117bd8-352b-1077-e8ae-8722d7ec213f@cn.fujitsu.com> From: Dou Liyang Message-ID: <5db4a904-5ae4-fb1e-ff10-0ac6c1479ccd@cn.fujitsu.com> Date: Wed, 6 Jun 2018 16:18:10 +0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.5.2 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset="gbk"; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Originating-IP: [10.167.226.106] X-yoursite-MailScanner-ID: 0453A48029E5.ABB6E X-yoursite-MailScanner: Found to be clean X-yoursite-MailScanner-From: douly.fnst@cn.fujitsu.com X-Spam-Status: No Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Thomas, At 06/06/2018 04:04 PM, Thomas Gleixner wrote: > On Wed, 6 Jun 2018, Dou Liyang wrote: > >> Hi Thomas, >> >> At 06/05/2018 07:41 PM, Thomas Gleixner wrote: >>> On Tue, 5 Jun 2018, Dou Liyang wrote: >>>>> +{ >>>>> + if (unlikely(irqd_is_setaffinity_pending(irqd))) >>>> >>>> Affinity pending is also judged in >>>> >>>>> + irq_move_irq(irqd); >>>> >>>> If we can remove the if(...) statement here >>> >>> That requires to fix all call sites in ia64 and that's why I didn't. But >> >> I didn't express clearly, I meant remove the if(...) statement from >> apic_ack_irq(), it doesn't require to fix the call sites in ia64. > > I put the check there on purpose as I explained in the changelog: > > Making the invocation of irq_move_irq() conditional avoids the out of > line call if the pending bit is not set. > I completely understand now, thank you so much. :-) Thanks, dou > Thanks, > > tglx > > >