* [RFC][v0][PATCH 1/1] ppc64: ignore interrupts while offline
@ 2013-01-15 10:31 Tiejun Chen
2013-01-16 3:00 ` tiejun.chen
0 siblings, 1 reply; 2+ messages in thread
From: Tiejun Chen @ 2013-01-15 10:31 UTC (permalink / raw)
To: benh, galak; +Cc: linuxppc-dev, linux-kernel
With lazy interrupt, some implementations of hotplug will
get some interrupts even while offline, just ignore these.
Signed-off-by: Tiejun Chen <tiejun.chen@windriver.com>
---
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;
--
1.7.9.5
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [RFC][v0][PATCH 1/1] ppc64: ignore interrupts while offline
2013-01-15 10:31 [RFC][v0][PATCH 1/1] ppc64: ignore interrupts while offline Tiejun Chen
@ 2013-01-16 3:00 ` tiejun.chen
0 siblings, 0 replies; 2+ messages in thread
From: tiejun.chen @ 2013-01-16 3:00 UTC (permalink / raw)
To: benh, galak; +Cc: linuxppc-dev, linux-kernel
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 <tiejun.chen@windriver.com>
> ---
> 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;
>
>
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2013-01-16 3:01 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-01-15 10:31 [RFC][v0][PATCH 1/1] ppc64: ignore interrupts while offline Tiejun Chen
2013-01-16 3:00 ` tiejun.chen
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).