powerpc/pseries: Add /proc interface to control topology updates
authorNathan Fontenot <nfont@linux.vnet.ibm.com>
Wed, 24 Apr 2013 06:07:39 +0000 (06:07 +0000)
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>
Fri, 26 Apr 2013 06:08:26 +0000 (16:08 +1000)
commite04fa61214a3e586282490af7e1b023522c1472a
tree44efd1187b1b9d77341cec4b80c4355a36a73afb
parent1b1218d32efdc81134eeb908935a18659cb3d9d7
powerpc/pseries: Add /proc interface to control topology updates

There are instances in which we do not want topology updates to occur.
In order to allow this a /proc interface (/proc/powerpc/topology_updates)
is introduced so that topology updates can be enabled and disabled.

This patch also adds a prrn_is_enabled() call so that PRRN events are
handled in the kernel only if topology updating is enabled.

Signed-off-by: Nathan Fontenot <nfont@linux.vnet.ibm.com>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
arch/powerpc/include/asm/topology.h
arch/powerpc/kernel/rtasd.c
arch/powerpc/mm/numa.c