]> git.baikalelectronics.ru Git - kernel.git/commit
ARM: EXYNOS: Fix core ID used by platsmp and hotplug code
authorTomasz Figa <t.figa@samsung.com>
Tue, 15 Jul 2014 17:59:18 +0000 (02:59 +0900)
committerOlof Johansson <olof@lixom.net>
Sat, 19 Jul 2014 00:12:57 +0000 (17:12 -0700)
commit70d4f9f5bcc927ebf96ee1915f791b14af491547
treec74803fdc530a45f1045154c5d5bf841545485ed
parent1e508671a50e59e466372d8046a21fe97afe9e49
ARM: EXYNOS: Fix core ID used by platsmp and hotplug code

When CPU topology is specified in device tree, cpu_logical_map() does
not return core ID anymore, but rather full MPIDR value. This breaks
existing calculation of PMU register offsets on Exynos SoCs.

This patch fixes the problem by adjusting the code to use only core ID
bits of the value returned by cpu_logical_map() to allow CPU topology to
be specified in device tree on Exynos SoCs.

Signed-off-by: Tomasz Figa <t.figa@samsung.com>
Signed-off-by: Kukjin Kim <kgene.kim@samsung.com>
Signed-off-by: Olof Johansson <olof@lixom.net>
arch/arm/mach-exynos/hotplug.c
arch/arm/mach-exynos/platsmp.c