ARM: EXYNOS: call scu_enable() only in case of cortex-A9 processor
Subsystems (3)
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
@@ -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
Leela,
Quoted 13 lines · Leela Krishna Amudala
This patch reads the cpuid part number and if it matches with cortex-A9, calls
scu_enable()Signed-off-by Leela Krishna Amudala <[email protected]>--- arch/arm/mach-exynos/platsmp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)arch/arm/mach-exynos/platsmp.c +0
-0
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. ;)
Kukjin Kim
AppliedQuoted 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()Signed-off-by Leela Krishna Amudala <[email protected]>--- 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.carch/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(unsignedint
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
Reviewed-by Doug Anderson <[email protected]>
Applied, thanks.
- Kukjin