]> git.baikalelectronics.ru Git - kernel.git/commit
lib: cpu_rmap: CPU affinity reverse-mapping
authorBen Hutchings <bhutchings@solarflare.com>
Wed, 19 Jan 2011 11:03:25 +0000 (11:03 +0000)
committerDavid S. Miller <davem@davemloft.net>
Mon, 24 Jan 2011 22:51:56 +0000 (14:51 -0800)
commitdb4e047cc6c19f90003372c9a032a4731873ef01
tree19ba9cea5102595e42bcd043aa53eb666ea834fa
parent84b0a97529e3bb5fa56f1dad332feac2105203e9
lib: cpu_rmap: CPU affinity reverse-mapping

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
library functions to support a generic reverse-mapping from CPUs to
objects with affinity and the specific case where the objects are
IRQs.

Signed-off-by: Ben Hutchings <bhutchings@solarflare.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/linux/cpu_rmap.h [new file with mode: 0644]
lib/Kconfig
lib/Makefile
lib/cpu_rmap.c [new file with mode: 0644]