[PATCH 1/9] include/linux/cpu.h: Define architecture dependent cpu map update and state check functions

From: Fenghua Yu
Date: Fri Nov 04 2011 - 18:21:27 EST


From: Fenghua Yu <fenghua.yu@xxxxxxxxx>

arch_cpu_maps_update_begin() and arch_cpu_maps_update_done() are architecture
dependent cpu map update functions which are called during cpu_up() and
cpu_down().

arch_state_check() is architecture dependent state check function which is
called during hibernate and suspend.

They are empty __weak functions and are overriden in x86.

Signed-off-by: Fenghua Yu <fenghua.yu@xxxxxxxxx>
---
include/linux/cpu.h | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)

diff --git a/include/linux/cpu.h b/include/linux/cpu.h
index b1a635a..88a6390 100644
--- a/include/linux/cpu.h
+++ b/include/linux/cpu.h
@@ -137,6 +137,8 @@ int cpu_up(unsigned int cpu);
void notify_cpu_starting(unsigned int cpu);
extern void cpu_maps_update_begin(void);
extern void cpu_maps_update_done(void);
+extern void arch_cpu_maps_update_begin(void);
+extern void arch_cpu_maps_update_done(void);

#else /* CONFIG_SMP */

@@ -207,4 +209,8 @@ static inline int disable_nonboot_cpus(void) { return 0; }
static inline void enable_nonboot_cpus(void) {}
#endif /* !CONFIG_PM_SLEEP_SMP */

+#ifdef CONFIG_PM
+extern int arch_state_check(void);
+#endif
+
#endif /* _LINUX_CPU_H_ */
--
1.6.0.3

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/