aboutsummaryrefslogtreecommitdiffstats
path: root/arch/powerpc/include
diff options
context:
space:
mode:
authorJesse Larrew <jlarrew@linux.vnet.ibm.com>2010-12-01 07:31:26 -0500
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>2010-12-08 23:36:30 -0500
commit3b7a27db3b6b5501e3d1c1628e6d5a547ffe76c6 (patch)
treee30f3b6449ede133a03a56d8e57a82751ce3dbdc /arch/powerpc/include
parent9eff1a38407c051273fe1a20f03f8155bd32de35 (diff)
powerpc: Disable VPHN polling during a suspend operation
Tie the polling mechanism into the ibm,suspend-me rtas call to stop/restart polling before/after a suspend, hibernate, migrate, or checkpoint restart operation. This ensures that the system has a chance to disable the polling if the partition is migrated to a system that does not support VPHN (and vice versa). Signed-off-by: Jesse Larrew <jlarrew@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.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/arch/powerpc/include/asm/topology.h b/arch/powerpc/include/asm/topology.h
index afe4aaa65c3b..aed188bd70db 100644
--- a/arch/powerpc/include/asm/topology.h
+++ b/arch/powerpc/include/asm/topology.h
@@ -93,6 +93,8 @@ extern void __init dump_numa_cpu_topology(void);
93extern int sysfs_add_device_to_node(struct sys_device *dev, int nid); 93extern int sysfs_add_device_to_node(struct sys_device *dev, int nid);
94extern void sysfs_remove_device_from_node(struct sys_device *dev, int nid); 94extern void sysfs_remove_device_from_node(struct sys_device *dev, int nid);
95 95
96extern int start_topology_update(void);
97extern int stop_topology_update(void);
96#else 98#else
97 99
98static inline void dump_numa_cpu_topology(void) {} 100static inline void dump_numa_cpu_topology(void) {}
@@ -107,6 +109,14 @@ static inline void sysfs_remove_device_from_node(struct sys_device *dev,
107{ 109{
108} 110}
109 111
112static inline int start_topology_update(void)
113{
114 return 0;
115}
116static inline int stop_topology_update(void)
117{
118 return 0;
119}
110#endif /* CONFIG_NUMA */ 120#endif /* CONFIG_NUMA */
111 121
112#include <asm-generic/topology.h> 122#include <asm-generic/topology.h>