Skip to contentSkip to conversation

ARM: EXYNOS: call scu_enable() only in case of cortex-A9 processor

PATCH Applied Leela Krishna Amudala 3 participants 3 messages May 31, 2013 – Jun 5, 2013

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ARM: EXYNOS: call scu_enable() only in case of cortex-A9 processor

This patch reads the cpuid part number and if it matches with cortex-A9, calls scu_enable()

---
 arch/arm/mach-exynos/platsmp.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/arm/mach-exynos/platsmp.c +1 -1
index a0e8ff7..d9c6d0a 100644
@@ -200,7 +200,7 @@ static void __init exynos_smp_prepare_cpus(unsigned int max_cpus)
 {
 	int i;
 
-	if (!(soc_is_exynos5250() || soc_is_exynos5440()))
+	if (read_cpuid_part_number() == ARM_CPU_PART_CORTEX_A9)
 		scu_enable(scu_base_addr());
 
 	/*
Signature · 1 line
1.7.10.4
Reviewed-by on v1 1/1
#1 lore raw

Leela,

Quoted 13 lines · Leela Krishna Amudala

This patch reads the cpuid part number and if it matches with cortex-A9, calls scu_enable()

---
 arch/arm/mach-exynos/platsmp.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/arm/mach-exynos/platsmp.c +0 -0
index a0e8ff7..d9c6d0a 100644

arch/arm/mach-exynos/platsmp.c static void __init exynos_smp_prepare_cpus(unsigned int max_cpus) · line 206

Quoted 8 lines
arch/arm/mach-exynos/platsmp.c +1 -1
@@ -200,7 +200,7 @@ static void __init exynos_smp_prepare_cpus(unsigned int max_cpus)
 {
        int i;
 
-       if (!(soc_is_exynos5250() || soc_is_exynos5440()))
+       if (read_cpuid_part_number() == ARM_CPU_PART_CORTEX_A9)
                scu_enable(scu_base_addr());
 
        /*

Thanks for sending upstream. For reference, our local version is here
<https://gerrit.chromium.org/gerrit/#/c/56804/>.

This is much better than listing every single non-A9 exynos in a big "if" test. ;)

Applied
#2 lore raw
Quoted 27 lines · Doug Anderson

Leela,

arch/arm/mach-

Quoted 9 lines · Leela Krishna Amudala

This patch reads the cpuid part number and if it matches with cortex-A9, calls scu_enable()

---
 arch/arm/mach-exynos/platsmp.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/arm/mach- renamed from arch/arm/mach-exynos/platsmp.c +0 -0

exynos/platsmp.c

arch/arm/mach-exynos/platsmp.c static void __init exynos_smp_prepare_cpus(unsigned

Quoted 4 lines

index a0e8ff7..d9c6d0a 100644

arch/arm/mach-exynos/platsmp.c +0 -0
@@ -200,7 +200,7 @@ static void __init exynos_smp_prepare_cpus(unsigned

int max_cpus)

Quoted 7 lines
arch/arm/mach-exynos/platsmp.c +1 -1
 {
        int i;
 
-       if (!(soc_is_exynos5250() || soc_is_exynos5440()))
+       if (read_cpuid_part_number() == ARM_CPU_PART_CORTEX_A9)
                scu_enable(scu_base_addr());
 
Quoted 8 lines

arch/arm/mach-exynos/platsmp.c static void __init exynos_smp_prepare_cpus(unsigned · line 206

Quoted 1 line
arch/arm/mach-exynos/platsmp.c +0 -0
        /*

Thanks for sending upstream. For reference, our local version is here
<https://gerrit.chromium.org/gerrit/#/c/56804/>.

This is much better than listing every single non-A9 exynos in a big "if" test. ;)

Yes :)

Quoted 1 line

Applied, thanks.

- Kukjin