[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <1320444241-834-2-git-send-email-fenghua.yu@intel.com>
Date: Fri, 4 Nov 2011 15:03:53 -0700
From: "Fenghua Yu" <fenghua.yu@...el.com>
To: "Thomas Gleixner" <tglx@...utronix.de>,
"H Peter Anvin" <hpa@...or.com>, "Ingo Molnar" <mingo@...e.hu>,
"Linus Torvalds" <torvalds@...ux-foundation.org>,
"Andrew Morton" <akpm@...ux-foundation.org>,
"Tony Luck" <tony.luck@...el.com>,
"Suresh B Siddha" <suresh.b.siddha@...el.com>,
"Len Brown" <len.brown@...el.com>,
"Srivatsa S. Bhat" <srivatsa.bhat@...ux.vnet.ibm.com>,
Peter Zijlstra <peterz@...radead.org>
Cc: "linux-kernel" <linux-kernel@...r.kernel.org>,
"Fenghua Yu" <fenghua.yu@...el.com>
Subject: [PATCH 1/9] include/linux/cpu.h: Define architecture dependent cpu map update and state check functions
From: Fenghua Yu <fenghua.yu@...el.com>
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@...el.com>
---
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@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists