From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail1.windriver.com (mail1.windriver.com [147.11.146.13]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (Client CN "mail1.windriver.com", Issuer "Intel External Basic Issuing CA 3A" (not verified)) by ozlabs.org (Postfix) with ESMTPS id B46892C009A for ; Wed, 16 Jan 2013 14:01:14 +1100 (EST) Message-ID: <50F617E4.4070109@windriver.com> Date: Wed, 16 Jan 2013 11:00:52 +0800 From: "tiejun.chen" MIME-Version: 1.0 To: , Subject: Re: [RFC][v0][PATCH 1/1] ppc64: ignore interrupts while offline References: <1358245860-6546-1-git-send-email-tiejun.chen@windriver.com> In-Reply-To: <1358245860-6546-1-git-send-email-tiejun.chen@windriver.com> Content-Type: text/plain; charset="UTF-8"; format=flowed Cc: linuxppc-dev@lists.ozlabs.org, linux-kernel@vger.kernel.org List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Please ignore this to check next version. Tiejun On 01/15/2013 06:31 PM, Tiejun Chen wrote: > With lazy interrupt, some implementations of hotplug will > get some interrupts even while offline, just ignore these. > > Signed-off-by: Tiejun Chen > --- > arch/powerpc/kernel/irq.c | 6 ++++++ > 1 file changed, 6 insertions(+) > > diff --git a/arch/powerpc/kernel/irq.c b/arch/powerpc/kernel/irq.c > index 4f97fe3..dbca574 100644 > --- a/arch/powerpc/kernel/irq.c > +++ b/arch/powerpc/kernel/irq.c > @@ -144,6 +144,12 @@ notrace unsigned int __check_irq_replay(void) > */ > unsigned char happened = local_paca->irq_happened; > > + /* Some implementations of hotplug will get some interrupts while > + * offline, just ignore these. > + */ > + if (cpu_is_offline(smp_processor_id())) > + return 0; > + > /* Clear bit 0 which we wouldn't clear otherwise */ > local_paca->irq_happened &= ~PACA_IRQ_HARD_DIS; > >