From: Takashi Iwai Subject: Re: [PATCH] ALSA: azt3328: Remove unnecessary synchronize_irq() before free_irq() Date: Sat, 21 Nov 2015 17:40:47 +0100 Message-ID: References: <1448103682-17172-1-git-send-email-lars@metafoo.de> Mime-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mx2.suse.de (mx2.suse.de [195.135.220.15]) by alsa0.perex.cz (Postfix) with ESMTP id B5980260453 for ; Sat, 21 Nov 2015 17:40:47 +0100 (CET) In-Reply-To: <1448103682-17172-1-git-send-email-lars@metafoo.de> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: alsa-devel-bounces@alsa-project.org Sender: alsa-devel-bounces@alsa-project.org To: Lars-Peter Clausen Cc: alsa-devel@alsa-project.org List-Id: alsa-devel@alsa-project.org On Sat, 21 Nov 2015 12:01:22 +0100, Lars-Peter Clausen wrote: > > Calling synchronize_irq() right before free_irq() is quite useless. On one > hand the IRQ can easily fire again before free_irq() is entered, on the > other hand free_irq() itself calls synchronize_irq() internally (in a race > condition free way) before any state associated with the IRQ is freed. > > Signed-off-by: Lars-Peter Clausen Applied, thanks. Takashi > --- > sound/pci/azt3328.c | 2 -- > 1 file changed, 2 deletions(-) > > diff --git a/sound/pci/azt3328.c b/sound/pci/azt3328.c > index 07a4acc..5e2ef0b 100644 > --- a/sound/pci/azt3328.c > +++ b/sound/pci/azt3328.c > @@ -2294,8 +2294,6 @@ snd_azf3328_free(struct snd_azf3328 *chip) > snd_azf3328_timer_stop(chip->timer); > snd_azf3328_gameport_free(chip); > > - if (chip->irq >= 0) > - synchronize_irq(chip->irq); > __end_hw: > if (chip->irq >= 0) > free_irq(chip->irq, chip); > -- > 2.1.4 > >