OSDN Git Service

powerpc/pseries: Poll VPA for topology changes and update NUMA maps
authorJesse Larrew <jlarrew@linux.vnet.ibm.com>
Wed, 1 Dec 2010 12:31:15 +0000 (12:31 +0000)
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>
Thu, 9 Dec 2010 04:36:29 +0000 (15:36 +1100)
commit9eff1a38407c051273fe1a20f03f8155bd32de35
treeebda1a3986c78cf7746676b3a8ee154301e2019d
parent4dfa9c474859629a2c4a3f8d29804d6a6c994908
powerpc/pseries: Poll VPA for topology changes and update NUMA maps

This patch sets a timer during boot that will periodically poll the
associativity change counters in the VPA. When a change in
associativity is detected, it retrieves the new associativity domain
information via the H_HOME_NODE_ASSOCIATIVITY hcall and updates the
NUMA node maps and sysfs entries accordingly. Note that since the
ibm,associativity device tree property does not exist on configurations
with both NUMA and SPLPAR enabled, no device tree updates are necessary.

Signed-off-by: Jesse Larrew <jlarrew@linux.vnet.ibm.com>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
arch/powerpc/include/asm/lppaca.h
arch/powerpc/mm/numa.c