Re: [PATCH 3/5] gpio/omap: optimise interrupt service routine

2013-04-10 Thread Linus Walleij
On Thu, Apr 4, 2013 at 10:16 PM, Jon Hunter wrote: > 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 eve

Re: [PATCH 3/5] gpio/omap: optimise interrupt service routine

2013-04-05 Thread Felipe Balbi
On Thu, Apr 04, 2013 at 03:16:14PM -0500, Jon Hunter wrote: > 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 check

[PATCH 3/5] gpio/omap: optimise interrupt service routine

2013-04-04 Thread Jon Hunter
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 o