* [PATCH] UML - update handle_IRQ_event
@ 2004-09-14 7:27 Jeff Dike
0 siblings, 0 replies; only message in thread
From: Jeff Dike @ 2004-09-14 7:27 UTC (permalink / raw)
To: akpm; +Cc: linux-kernel
A small update to make UML's handle_IRQ_event look like the i386 version.
Signed-off-by: Jeff Dike <jdike@addtoit.com>
Index: 2.6.9-rc2/arch/um/kernel/irq.c
===================================================================
--- 2.6.9-rc2.orig/arch/um/kernel/irq.c 2004-09-14 02:03:52.000000000 -0400
+++ 2.6.9-rc2/arch/um/kernel/irq.c 2004-09-14 02:03:58.000000000 -0400
@@ -147,7 +147,7 @@
struct irqaction * action)
{
int status = 1; /* Force the "do bottom halves" bit */
- int ret;
+ int ret, retval = 0;
if (!(action->flags & SA_INTERRUPT))
local_irq_enable();
@@ -156,6 +156,7 @@
ret = action->handler(irq, action->dev_id, regs);
if (ret == IRQ_HANDLED)
status |= action->flags;
+ retval |= ret;
action = action->next;
} while (action);
if (status & SA_SAMPLE_RANDOM)
@@ -163,7 +164,7 @@
local_irq_disable();
- return status;
+ return retval;
}
/*
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2004-09-14 6:24 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-09-14 7:27 [PATCH] UML - update handle_IRQ_event Jeff Dike
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®