提交 92d4dda3 编写于 作者: J Johannes Berg 提交者: Paul Mackerras

[POWERPC] Fix comment in kernel/irq.c

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: NJohannes Berg <johannes@sipsolutions.net>
Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Signed-off-by: NPaul Mackerras <paulus@samba.org>
上级 f31909c0
...@@ -281,10 +281,10 @@ void do_IRQ(struct pt_regs *regs) ...@@ -281,10 +281,10 @@ void do_IRQ(struct pt_regs *regs)
/* /*
* Every platform is required to implement ppc_md.get_irq. * 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. * indicate there are no more pending.
* The value -2 is for buggy hardware and means that this IRQ * The value NO_IRQ_IGNORE is for buggy hardware and means that this
* has already been handled. -- Tom * IRQ has already been handled. -- Tom
*/ */
irq = ppc_md.get_irq(); irq = ppc_md.get_irq();
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册