]> git.baikalelectronics.ru Git - kernel.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)
commit96707bb8cfab54be810a8908ea9a971de58a34fb
tree4d89ce8c3b2b57662be431489a93f9705e8dcb68
parent4d4065ad5a438075d0d07dacd5e88170085b422f
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