genirq: Add IRQ affinity notifiers
authorBen Hutchings <bhutchings@solarflare.com>
Wed, 19 Jan 2011 21:01:44 +0000 (21:01 +0000)
committerThomas Gleixner <tglx@linutronix.de>
Sat, 22 Jan 2011 16:34:25 +0000 (17:34 +0100)
commitcd7eab44e9946c28d595abe3e9a43e945bc49141
treeb8b0c1beebbcad7785422a463504a374bb43cdea
parent1bae4ce27c9c90344f23c65ea6966c50ffeae2f5
genirq: Add IRQ affinity notifiers

When initiating I/O on a multiqueue and multi-IRQ device, we may want
to select a queue for which the response will be handled on the same
or a nearby CPU.  This requires a reverse-map of IRQ affinity.  Add a
notification mechanism to support this.

This is based closely on work by Thomas Gleixner <tglx@linutronix.de>.

Signed-off-by: Ben Hutchings <bhutchings@solarflare.com>
Cc: linux-net-drivers@solarflare.com
Cc: Tom Herbert <therbert@google.com>
Cc: David Miller <davem@davemloft.net>
LKML-Reference: <1295470904.11126.84.camel@bwh-desktop>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
include/linux/interrupt.h
include/linux/irqdesc.h
kernel/irq/manage.c