From: Jon Hunter Date: Thu, 4 Apr 2013 20:16:14 +0000 (-0500) Subject: gpio/omap: optimise interrupt service routine X-Git-Tag: omap-for-v3.10/dt-fixes-for-merge-window~23^2~8 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3513cdeccc647d41c4a9ff923af17deaaac04a66;p=pandora-kernel.git gpio/omap: optimise interrupt service routine The OMAP GPIO interrupt service routine is checking each bit in the GPIO interrupt status register to see which bits are set. It is not efficient to check every bit especially if only a few bits are set. Therefore, instead of checking every bit use the __ffs() function, which returns the location of the first set bit, to find all the set bits. This optimisation was suggested-by and developed in collaboration with Felipe Balbi. Signed-off-by: Jon Hunter Reviewed-by: Felipe Balbi Acked-by: Santosh Shilimkar Reviewed-by: Kevin Hilman Signed-off-by: Linus Walleij --- Reading git-diff-tree failed