From mboxrd@z Thu Jan 1 00:00:00 1970 From: marc.zyngier@arm.com (Marc Zyngier) Date: Mon, 16 Jan 2012 16:10:03 +0000 Subject: [PATCH 1/2] ARM: logical_cpu_map: decouple CPU mapping from SMP In-Reply-To: <1326728755-10133-1-git-send-email-will.deacon@arm.com> References: <1326728755-10133-1-git-send-email-will.deacon@arm.com> Message-ID: <4F144BDB.1090908@arm.com> To: linux-arm-kernel@lists.infradead.org List-Id: linux-arm-kernel.lists.infradead.org On 16/01/12 15:45, Will Deacon wrote: > It turns out that the logical CPU mapping is useful even when !CONFIG_SMP > for manipulation of devices like interrupt and power controllers when > running a UP kernel on a CPU other than 0. This can happen when kexecing > a UP image from an SMP kernel. > > In the future, multi-cluster systems running AMP configurations will > require something similar for mapping cluster IDs, so it makes sense to > decouple this logic in preparation for this support. > > Cc: Marc Zyngier > Cc: Yang Bai > Reported-by: Joerg Roedel > Signed-off-by: Will Deacon > --- > arch/arm/common/gic.c | 7 ++----- > arch/arm/include/asm/smp.h | 6 ------ > arch/arm/include/asm/smp_plat.h | 6 ++++++ > arch/arm/kernel/setup.c | 14 ++++++++++++++ > arch/arm/kernel/smp.c | 14 -------------- > arch/arm/mach-exynos/hotplug.c | 1 + > arch/arm/mach-exynos/platsmp.c | 1 + > arch/arm/mach-highbank/highbank.c | 3 +-- > arch/arm/mach-imx/src.c | 5 +---- > arch/arm/mach-msm/hotplug.c | 1 + > arch/arm/mach-msm/platsmp.c | 1 + > arch/arm/mach-realview/hotplug.c | 1 + > arch/arm/mach-shmobile/smp-sh73a0.c | 1 + > arch/arm/mach-ux500/hotplug.c | 1 + > arch/arm/mach-ux500/platsmp.c | 1 + > arch/arm/mach-vexpress/hotplug.c | 1 + > arch/arm/plat-versatile/platsmp.c | 1 + > 17 files changed, 34 insertions(+), 31 deletions(-) You may want to also add a #include to arch/arm/mach-shmobile/smp-r8a7779.c (a newcomer in Linus' tree). Otherwise: Acked-by: Marc Zyngier M. -- Jazz is not dead. It just smells funny...