From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org F14CB601D2 Authentication-Results: pdx-caf-mail.web.codeaurora.org; dmarc=none (p=none dis=none) header.from=linutronix.de 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 S932524AbeFFIFT (ORCPT + 25 others); Wed, 6 Jun 2018 04:05:19 -0400 Received: from Galois.linutronix.de ([146.0.238.70]:48865 "EHLO Galois.linutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932290AbeFFIFR (ORCPT ); Wed, 6 Jun 2018 04:05:17 -0400 Date: Wed, 6 Jun 2018 10:04:39 +0200 (CEST) From: Thomas Gleixner To: Dou Liyang cc: LKML , Ingo Molnar , Peter Zijlstra , Borislav Petkov , Dmitry Safonov <0x7f454c46@gmail.com>, Tariq Toukan , Song Liu , Joerg Roedel , Mike Travis , stable@vger.kernel.org Subject: Re: [patch 3/8] x86/apic: Provide apic_ack_irq() In-Reply-To: Message-ID: References: <20180604162224.471925894@linutronix.de> <94117bd8-352b-1077-e8ae-8722d7ec213f@cn.fujitsu.com> User-Agent: Alpine 2.21 (DEB 202 2017-01-01) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII X-Linutronix-Spam-Score: -1.0 X-Linutronix-Spam-Level: - X-Linutronix-Spam-Status: No , -1.0 points, 5.0 required, ALL_TRUSTED=-1,SHORTCIRCUIT=-0.0001 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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. Thanks, tglx