kernel_optimize_test/arch/x86/pci
Jesse Barnes 2547089ca2 x86/PCI: initialize PCI bus node numbers early
The current mp_bus_to_node array is initialized only by AMD specific
code, since AMD platforms have registers that can be used for
determining mode numbers.  On new Intel platforms it's necessary to
initialize this array as well though, otherwise all PCI node numbers
will be 0, when in fact they should be -1 (indicating that I/O isn't
tied to any particular node).

So move the mp_bus_to_node code into the common PCI code, and
initialize it early with a default value of -1.  This may be overridden
later by arch code (e.g. the AMD code).

With this change, PCI consistent memory and other node specific
allocations (e.g. skbuff allocs) should occur on the "current" node.
If, for performance reasons, applications want to be bound to specific
nodes, they should open their devices only after being pinned to the
CPU where they'll run, for maximum locality.

Acked-by: Yinghai Lu <yinghai@kernel.org>
Tested-by: Jesse Brandeburg <jesse.brandeburg@gmail.com>
Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
2009-09-09 13:29:21 -07:00
..
acpi.c x86/PCI: get root CRS before scanning children 2009-06-30 13:44:24 -07:00
amd_bus.c x86/PCI: initialize PCI bus node numbers early 2009-09-09 13:29:21 -07:00
common.c x86/PCI: initialize PCI bus node numbers early 2009-09-09 13:29:21 -07:00
direct.c
early.c
fixup.c
i386.c x86/pci: insert ioapic resource before assigning unassigned resources 2009-07-10 13:03:14 -07:00
init.c
irq.c x86, apic: introduce io_apic_irq_attr 2009-05-18 08:38:55 +02:00
legacy.c
Makefile
mmconfig_32.c
mmconfig_64.c
mmconfig-shared.c ACPI, PCI, x86: move MCFG parsing routine from ACPI to PCI file 2009-06-12 20:50:38 -04:00
numaq_32.c
olpc.c
pcbios.c
visws.c