diff options
author | Nathan Fontenot <nfont@linux.vnet.ibm.com> | 2013-04-24 02:07:39 -0400 |
---|---|---|
committer | Benjamin Herrenschmidt <benh@kernel.crashing.org> | 2013-04-26 02:08:26 -0400 |
commit | e04fa61214a3e586282490af7e1b023522c1472a (patch) | |
tree | 44efd1187b1b9d77341cec4b80c4355a36a73afb /arch/powerpc/include | |
parent | 1b1218d32efdc81134eeb908935a18659cb3d9d7 (diff) |
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>
Diffstat (limited to 'arch/powerpc/include')
-rw-r--r-- | arch/powerpc/include/asm/topology.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/arch/powerpc/include/asm/topology.h b/arch/powerpc/include/asm/topology.h index 852ed1b384f6..161ab662843b 100644 --- a/arch/powerpc/include/asm/topology.h +++ b/arch/powerpc/include/asm/topology.h | |||
@@ -71,6 +71,7 @@ static inline void sysfs_remove_device_from_node(struct device *dev, | |||
71 | #if defined(CONFIG_NUMA) && defined(CONFIG_PPC_SPLPAR) | 71 | #if defined(CONFIG_NUMA) && defined(CONFIG_PPC_SPLPAR) |
72 | extern int start_topology_update(void); | 72 | extern int start_topology_update(void); |
73 | extern int stop_topology_update(void); | 73 | extern int stop_topology_update(void); |
74 | extern int prrn_is_enabled(void); | ||
74 | #else | 75 | #else |
75 | static inline int start_topology_update(void) | 76 | static inline int start_topology_update(void) |
76 | { | 77 | { |
@@ -80,6 +81,10 @@ static inline int stop_topology_update(void) | |||
80 | { | 81 | { |
81 | return 0; | 82 | return 0; |
82 | } | 83 | } |
84 | static inline int prrn_is_enabled(void) | ||
85 | { | ||
86 | return 0; | ||
87 | } | ||
83 | #endif /* CONFIG_NUMA && CONFIG_PPC_SPLPAR */ | 88 | #endif /* CONFIG_NUMA && CONFIG_PPC_SPLPAR */ |
84 | 89 | ||
85 | #include <asm-generic/topology.h> | 90 | #include <asm-generic/topology.h> |