From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org 98FA160555 Authentication-Results: pdx-caf-mail.web.codeaurora.org; dmarc=none (p=none dis=none) header.from=cn.fujitsu.com Authentication-Results: pdx-caf-mail.web.codeaurora.org; spf=none smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932429AbeFFISY (ORCPT + 25 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" 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 Sender: linux-kernel-owner@vger.kernel.org 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 > > >