softirq: use ffs() in __do_softirq()
authorJoe Perches <joe@perches.com>
Tue, 28 Jan 2014 01:07:14 +0000 (17:07 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Tue, 28 Jan 2014 05:02:40 +0000 (21:02 -0800)
commit2e702b9f6cba4eb87d90e2a2d425a1fc05eec803
treeade4a3bcec477ced2780f1841e7c06f547effe84
parenta19428e5c3f4f39c302cb97b847dfd23613145c1
softirq: use ffs() in __do_softirq()

Possible speed improvement of __do_softirq() by using ffs() instead of
using a while loop with an & 1 test then single bit shift.

Signed-off-by: Joe Perches <joe@perches.com>
Cc: Frederic Weisbecker <fweisbec@gmail.com>
Cc: Ingo Molnar <mingo@elte.hu>
Cc: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
kernel/softirq.c