]> git.baikalelectronics.ru Git - kernel.git/commit
[ARM] pxa: generalize the muxed gpio IRQ handling code with loop and ffs()
authoreric miao <eric.miao@marvell.com>
Tue, 4 Mar 2008 02:57:18 +0000 (10:57 +0800)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Sat, 19 Apr 2008 10:29:03 +0000 (11:29 +0100)
commit20e68707d3cb4643be3c3a93f6e95893b168cf60
tree2e0aac15ed22525880dcf35f23cd60f7bd098a96
parenta2c7ab7f55a1fe7d0858a52faf904e100f412bc1
[ARM] pxa: generalize the muxed gpio IRQ handling code with loop and ffs()

1. As David Brownell suggests, using ffs() is going to make the loop
   a bit faster (by avoiding unnecessary shift and iteration)

2. Russell suggested find_{first,next}_bit() being used with the
   gedr[] array

Signed-off-by: eric miao <eric.miao@marvell.com>
Cc: David Brownell <david-b@pacbell.net>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
arch/arm/mach-pxa/irq.c