From: Milton Miller Date: Tue, 10 May 2011 19:30:18 +0000 (+0000) Subject: powerpc/mpc62xx_pic: Fix get_irq handling of NO_IRQ X-Git-Tag: v3.0-rc1~385^2~25 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=67347eba156d64150be73c9f5797342a66b123d9;p=pandora-kernel.git powerpc/mpc62xx_pic: Fix get_irq handling of NO_IRQ If none of irq category bits were set mpc52xx_get_irq() would pass NO_IRQ_IGNORE (-1) to irq_linear_revmap, which does an unsigned compare and declares the interrupt above the linear map range. It then punts to irq_find_mapping, which performs a linear search of all irqs, which will likely miss and only then return NO_IRQ. If no status bit is set, then we should return NO_IRQ directly. The interrupt should not be suppressed from spurious counting, in fact that is the definition of supurious. Signed-off-by: Milton Miller Acked-by: Grant Likely Signed-off-by: Benjamin Herrenschmidt --- Reading git-diff-tree failed