Thread (24 messages) flat view 24 messages, 6 authors, 2011-10-05
STALE5422d

[PATCH v4 06/10] ARM: SoC: convert Exynos4 to SoC descriptor

From: Marc Zyngier <hidden>
Date: 2011-10-04 12:33:47

On 04/10/11 12:01, Kyungmin Park wrote:
On Tue, Oct 4, 2011 at 2:35 AM, Marc Zyngier [off-list ref] wrote:
quoted
Convert Exynos4 to use the SoC descriptor to provide its SMP
and CPU hotplug operations.

Cc: Kukjin Kim <redacted>
Signed-off-by: Marc Zyngier <redacted>
---
 arch/arm/mach-exynos4/core.h                |    9 +++++++++
 arch/arm/mach-exynos4/cpu.c                 |    8 ++++++++
 arch/arm/mach-exynos4/hotplug.c             |    8 +++++---
 arch/arm/mach-exynos4/mach-armlex4210.c     |    3 +++
 arch/arm/mach-exynos4/mach-nuri.c           |    3 +++
 arch/arm/mach-exynos4/mach-origen.c         |    3 +++
 arch/arm/mach-exynos4/mach-smdk4212.c       |    3 +++
 arch/arm/mach-exynos4/mach-smdkv310.c       |    4 ++++
 arch/arm/mach-exynos4/mach-universal_c210.c |    3 +++
 arch/arm/mach-exynos4/platsmp.c             |   25 +++++++++++++++++++++----
 10 files changed, 62 insertions(+), 7 deletions(-)
 create mode 100644 arch/arm/mach-exynos4/core.h
diff --git a/arch/arm/mach-exynos4/core.h b/arch/arm/mach-exynos4/core.h
new file mode 100644
index 0000000..ba9fcc8
--- /dev/null
+++ b/arch/arm/mach-exynos4/core.h
@@ -0,0 +1,9 @@
It's helpful to add header guard

#ifndef __EXYNOS4_CORE_H
#define __EXYNOS4_CORE_H
Yep, will add.
quoted
+#include <asm/soc.h>
+
+extern struct arm_soc_smp_init_ops     exynos4_soc_smp_init_ops;
+extern struct arm_soc_smp_ops          exynos4_soc_smp_ops;
+extern struct arm_soc_desc             exynos4_soc_desc;
+
+extern int  exynos4_cpu_kill(unsigned int cpu);
+extern void exynos4_cpu_die(unsigned int cpu);
+extern int  exynos4_cpu_disable(unsigned int cpu);
#endif

Tested-by: Kyungmin Park <kyungmin.park@samsung.com>
Thanks for testing.

	M.
-- 
Jazz is not dead. It just smells funny...
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help