]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
softirq: use ffs() in __do_softirq()
authorJoe Perches <joe@perches.com>
Wed, 15 Jan 2014 05:56:06 +0000 (16:56 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Thu, 16 Jan 2014 05:54:00 +0000 (16:54 +1100)
commit99f56fa181083481bac2d550825c234c2b242ef3
tree02f8dcecc8b0d4419252a4419fa31aeaa64e2ac7
parent0fa91019031447b341fb5db2212e37aa601d9011
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>
kernel/softirq.c