]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
drivers/char/ip2: separate polling and irq-driven work entry points
authorJeff Garzik <jeff@garzik.org>
Fri, 19 Oct 2007 19:38:40 +0000 (15:38 -0400)
committerJeff Garzik <jeff@garzik.org>
Tue, 23 Oct 2007 23:53:16 +0000 (19:53 -0400)
commit6bd3bd6794d4139aa1b5193a82e3adfcb488c392
tree4d89ce8c3b2b57662be431489a93f9705e8dcb68
parentf3518e4ee70916e6bd43c8082e02f0dd1e19d7af
drivers/char/ip2: separate polling and irq-driven work entry points

Polling currently calls the irq handler, which loops through all the
boards, calling the work function for all polling boards with work.

irq handling loops through all the boards, finding the specific board
that applies to us, and calling the work just for that one board.

The two logics are sufficiently different to warrant different
functions, rather than being slack and calling the same function in two
different ways.

This serves to make the interrupt handler a -lot- more efficient.

Signed-off-by: Jeff Garzik <jgarzik@redhat.com>
drivers/char/ip2/ip2main.c