ARM: EXYNOS: call scu_enable() only in case of cortex-A9 processor
authorLeela Krishna Amudala <l.krishna@samsung.com>
Mon, 10 Jun 2013 09:28:04 +0000 (18:28 +0900)
committerKukjin Kim <kgene.kim@samsung.com>
Tue, 18 Jun 2013 18:41:38 +0000 (03:41 +0900)
This patch reads the cpuid part number and if it matches with
cortex-A9, calls scu_enable()

Signed-off-by: Leela Krishna Amudala <l.krishna@samsung.com>
Reviewed-by: Doug Anderson <dianders@chromium.org>
Signed-off-by: Kukjin Kim <kgene.kim@samsung.com>
arch/arm/mach-exynos/platsmp.c

index a0e8ff7758a4c055e16323364167cfeb8fcfe2ab..d9c6d0ab6a0ca62a9f7d8678709d0fa4baf5c4fa 100644 (file)
@@ -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());
 
        /*