Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S934076AbZGQClT (ORCPT ); Thu, 16 Jul 2009 22:41:19 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S934068AbZGQClS (ORCPT ); Thu, 16 Jul 2009 22:41:18 -0400 Received: from ogre.sisk.pl ([217.79.144.158]:37036 "EHLO ogre.sisk.pl" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S934067AbZGQClR (ORCPT ); Thu, 16 Jul 2009 22:41:17 -0400 From: "Rafael J. Wysocki" To: "Lu, Guanqun" Subject: Re: [PATCH 1/3] add flag IRQF_NO_SUSPEND in 'struct irqaction' Date: Fri, 17 Jul 2009 04:41:46 +0200 User-Agent: KMail/1.11.2 (Linux/2.6.31-rc3-rjw; KDE/4.2.4; x86_64; ; ) Cc: "linux-kernel@vger.kernel.org" , "mingo@elte.hu" , "jeremy@goop.org" References: <1247834204-3084-1-git-send-email-guanqun.lu@intel.com> <200907170352.11749.rjw@sisk.pl> <8FED46E8A9CA574792FC7AACAC38FE7701E6EA157E@PDSMSX501.ccr.corp.intel.com> In-Reply-To: <8FED46E8A9CA574792FC7AACAC38FE7701E6EA157E@PDSMSX501.ccr.corp.intel.com> MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-2" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200907170441.47373.rjw@sisk.pl> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2359 Lines: 64 On Friday 17 July 2009, Lu, Guanqun wrote: > >-----Original Message----- > >From: Rafael J. Wysocki [mailto:rjw@sisk.pl] > >Sent: Friday, July 17, 2009 9:52 AM > >To: Lu, Guanqun > >Cc: linux-kernel@vger.kernel.org; mingo@elte.hu; jeremy@goop.org > >Subject: Re: [PATCH 1/3] add flag IRQF_NO_SUSPEND in 'struct irqaction' > > > >On Friday 17 July 2009, Guanqun Lu wrote: > >> We currently only bypass IRQF_TIMER in '__disable_irq', > >> but Xen specific IRQs should not be disabled either. > >> This commit adds a new flag to accompolish this goal > >> without being mixed up with IRQF_TIMER flag. > > > >For some obscure reasons [2/3] didn't reach my inbox. The other 2 patches > >look fine to me. > > I'm sending patch [2/3] via attachment in case it's lost accidentally by git-send-email again. > Sorry for the inconvenience it may cause. Thanks, patch looks OK to me. Best, Rafael > >> Signed-off-by: Guanqun Lu > >> --- > >> include/linux/interrupt.h | 1 + > >> kernel/irq/manage.c | 3 ++- > >> 2 files changed, 3 insertions(+), 1 deletions(-) > >> > >> diff --git a/include/linux/interrupt.h b/include/linux/interrupt.h > >> index 2721f07..99264c3 100644 > >> --- a/include/linux/interrupt.h > >> +++ b/include/linux/interrupt.h > >> @@ -58,6 +58,7 @@ > >> #define IRQF_PERCPU 0x00000400 > >> #define IRQF_NOBALANCING 0x00000800 > >> #define IRQF_IRQPOLL 0x00001000 > >> +#define IRQF_NO_SUSPEND 0x00002000 > >> > >> /* > >> * Bits used by threaded handlers: > >> diff --git a/kernel/irq/manage.c b/kernel/irq/manage.c > >> index 50da676..3dc4e74 100644 > >> --- a/kernel/irq/manage.c > >> +++ b/kernel/irq/manage.c > >> @@ -192,7 +192,8 @@ static inline int setup_affinity(unsigned int irq, struct irq_desc > >*desc) > >> void __disable_irq(struct irq_desc *desc, unsigned int irq, bool suspend) > >> { > >> if (suspend) { > >> - if (!desc->action || (desc->action->flags & IRQF_TIMER)) > >> + if (!desc->action || > >> + (desc->action->flags & (IRQF_TIMER | IRQF_NO_SUSPEND))) > >> return; > >> desc->status |= IRQ_SUSPENDED; > >> } -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/