ARM: S5PV310: Optimize interrupt source searching code
authorChanghwan Youn <chaos.youn@samsung.com>
Wed, 29 Sep 2010 11:31:42 +0000 (20:31 +0900)
committerKukjin Kim <kgene.kim@samsung.com>
Wed, 20 Oct 2010 22:52:18 +0000 (07:52 +0900)
It is reported by Junseok Jung that using clz instruction is
better instead of using for-loop to find the interrupt source.
This patch modifies interrupt source searching code using __ffs().
The __ffs() is implemented using clz instruction.

Suggested-by: Junseok Jung <jundols.jung@samsung.com>
Signed-off-by: Changhwan Youn <chaos.youn@samsung.com>
Signed-off-by: Kukjin Kim <kgene.kim@samsung.com>

No differences found