]> git.karo-electronics.de Git - karo-tx-linux.git/commit
x86: fixup numa_node information for AMD CPU northbridge functions
authorAndreas Herrmann <andreas.herrmann3@amd.com>
Fri, 17 Apr 2009 10:07:46 +0000 (12:07 +0200)
committerIngo Molnar <mingo@elte.hu>
Fri, 17 Apr 2009 16:12:36 +0000 (18:12 +0200)
commit9b94b3a19b13e094c10f65f24bc358f6ffe4eacd
tree8e12a953129ca9d2f51467362bf3b1a98d9088f7
parentb206525ad1f653b7da35f5827be93770d28eae11
x86: fixup numa_node information for AMD CPU northbridge functions

Currently the numa_node attribute for these PCI devices is 0 (it
corresponds to the numa_node for PCI bus 0). This is not a big issue
but incorrect.

This inconsistency can be fixed by reading the node number from CPU
NB function 0.

[ Impact: fill in dev->numa_node information, to optimize DMA allocations ]

Signed-off-by: Andreas Herrmann <andreas.herrmann3@amd.com>
Cc: jbarnes@virtuousgeek.org
LKML-Reference: <20090417100746.GG16198@alberich.amd.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
arch/x86/kernel/quirks.c