diff options
author | Russell King <rmk+kernel@arm.linux.org.uk> | 2010-09-04 16:14:20 +0100 |
---|---|---|
committer | Russell King <rmk+kernel@arm.linux.org.uk> | 2010-10-04 20:20:45 +0100 |
commit | 067173526c3bbc2eaeefcf6b7b2a9d998b9e8042 (patch) | |
tree | 4da794388079afaf0f43a5aadb750e097846e538 /arch/arm/mach-realview/include/mach/smp.h | |
parent | 971acb9b420ea1662dd3c48184c4315f87643be5 (diff) | |
download | op-kernel-dev-067173526c3bbc2eaeefcf6b7b2a9d998b9e8042.zip op-kernel-dev-067173526c3bbc2eaeefcf6b7b2a9d998b9e8042.tar.gz |
ARM: Provide common header for hard_smp_processor_id()
Provide a common header to read the SMP CPU number from the MPIDR.
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Diffstat (limited to 'arch/arm/mach-realview/include/mach/smp.h')
-rw-r--r-- | arch/arm/mach-realview/include/mach/smp.h | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/arch/arm/mach-realview/include/mach/smp.h b/arch/arm/mach-realview/include/mach/smp.h index dd53892..d3cd265 100644 --- a/arch/arm/mach-realview/include/mach/smp.h +++ b/arch/arm/mach-realview/include/mach/smp.h @@ -1,16 +1,8 @@ #ifndef ASMARM_ARCH_SMP_H #define ASMARM_ARCH_SMP_H - #include <asm/hardware/gic.h> - -#define hard_smp_processor_id() \ - ({ \ - unsigned int cpunum; \ - __asm__("mrc p15, 0, %0, c0, c0, 5" \ - : "=r" (cpunum)); \ - cpunum &= 0x0F; \ - }) +#include <asm/smp_mpidr.h> /* * We use IRQ1 as the IPI |