[PATCH 3/3] powerpc: fix comment in kernel/irq.c
benh at kernel.crashing.org
Wed Jan 24 17:35:38 EST 2007
On Wed, 2006-12-13 at 13:38 +0100, Johannes Berg wrote:
> plain text document attachment (irq-comment.patch)
> kernel/irq.c contains a comment that speaks of -1 and -2 as interrupt
> numbers, but this is actually dependent on configuration options now.
> Replace by NO_IRQ and NO_IRQ_ENABLED.
> Signed-off-by: Johannes Berg <johannes at sipsolutions.net>
Acked-by: Benjamin Herrenschmidt <benh at kernel.crashing.org>
> --- linux-2.6-git.orig/arch/powerpc/kernel/irq.c 2006-12-13 12:03:44.406144791 +0100
> +++ linux-2.6-git/arch/powerpc/kernel/irq.c 2006-12-13 12:04:05.727144791 +0100
> @@ -281,10 +281,10 @@ void do_IRQ(struct pt_regs *regs)
> * Every platform is required to implement ppc_md.get_irq.
> - * This function will either return an irq number or -1 to
> + * This function will either return an irq number or NO_IRQ to
> * indicate there are no more pending.
> - * The value -2 is for buggy hardware and means that this IRQ
> - * has already been handled. -- Tom
> + * The value NO_IRQ_IGNORE is for buggy hardware and means that this
> + * IRQ has already been handled. -- Tom
> irq = ppc_md.get_irq();
More information about the Linuxppc-dev