]> git.karo-electronics.de Git - mv-sheeva.git/commitdiff
ARM: SMP: remove smp_mpidr.h
authorRussell King <rmk+kernel@arm.linux.org.uk>
Tue, 30 Nov 2010 18:24:57 +0000 (18:24 +0000)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Mon, 20 Dec 2010 15:09:11 +0000 (15:09 +0000)
With "ARM: CPU hotplug: remove bug checks in platform_cpu_die()", we
now do not use hard_smp_processor_id(), we no longer need to read the
hardware processor ID.  Remove the include providing this function.

Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
arch/arm/include/asm/smp_mpidr.h [deleted file]
arch/arm/mach-realview/include/mach/smp.h
arch/arm/mach-s5pv310/include/mach/smp.h
arch/arm/mach-tegra/include/mach/smp.h
arch/arm/mach-ux500/include/mach/smp.h
arch/arm/mach-vexpress/include/mach/smp.h
arch/arm/plat-omap/include/plat/smp.h

diff --git a/arch/arm/include/asm/smp_mpidr.h b/arch/arm/include/asm/smp_mpidr.h
deleted file mode 100644 (file)
index 6a9307d..0000000
+++ /dev/null
@@ -1,17 +0,0 @@
-#ifndef ASMARM_SMP_MIDR_H
-#define ASMARM_SMP_MIDR_H
-
-#define hard_smp_processor_id()                                                \
-       ({                                                              \
-               unsigned int cpunum;                                    \
-               __asm__("\n"                                            \
-                       "1:     mrc p15, 0, %0, c0, c0, 5\n"            \
-                       "       .pushsection \".alt.smp.init\", \"a\"\n"\
-                       "       .long   1b\n"                           \
-                       "       mov     %0, #0\n"                       \
-                       "       .popsection"                            \
-                       : "=r" (cpunum));                               \
-               cpunum &= 0x0F;                                         \
-       })
-
-#endif
index d1aa70415a4e13664e822f2a4c50da4646b99809..c8221b38ee7c32ec2e53d5a24fe6c0a90e6c3743 100644 (file)
@@ -2,7 +2,6 @@
 #define ASMARM_ARCH_SMP_H
 
 #include <asm/hardware/gic.h>
-#include <asm/smp_mpidr.h>
 
 /*
  * We use IRQ1 as the IPI
index 2897747bcb07b6f23ee172294d6199b4b22adc2b..77e5a841f741405b25f7c6d30de6716d958a7bd6 100644 (file)
@@ -7,7 +7,6 @@
 #define ASM_ARCH_SMP_H __FILE__
 
 #include <asm/hardware/gic.h>
-#include <asm/smp_mpidr.h>
 
 extern void __iomem *gic_cpu_base_addr;
 
index d1aa70415a4e13664e822f2a4c50da4646b99809..c8221b38ee7c32ec2e53d5a24fe6c0a90e6c3743 100644 (file)
@@ -2,7 +2,6 @@
 #define ASMARM_ARCH_SMP_H
 
 #include <asm/hardware/gic.h>
-#include <asm/smp_mpidr.h>
 
 /*
  * We use IRQ1 as the IPI
index bd57c50a5b86005f1996bff3aae2383e03bcfb67..ca2b15b1b3b18d63ba734daed49fe5c1ea99c7a6 100644 (file)
@@ -10,7 +10,6 @@
 #define ASMARM_ARCH_SMP_H
 
 #include <asm/hardware/gic.h>
-#include <asm/smp_mpidr.h>
 
 /* This is required to wakeup the secondary core */
 extern void u8500_secondary_startup(void);
index 721be0f0311da31daad4585d298c2054a4877979..4c05e4a9713a311c0be2ee63912b32b6a21400b5 100644 (file)
@@ -2,7 +2,6 @@
 #define __MACH_SMP_H
 
 #include <asm/hardware/gic.h>
-#include <asm/smp_mpidr.h>
 
 /*
  * We use IRQ1 as the IPI
index e5541e5388be688538e5aa3185c3ebaa39d4d4fc..7a10257909efa02969d61c5572bbacf9752adc84 100644 (file)
@@ -18,7 +18,6 @@
 #define OMAP_ARCH_SMP_H
 
 #include <asm/hardware/gic.h>
-#include <asm/smp_mpidr.h>
 
 /* Needed for secondary core boot */
 extern void omap_secondary_startup(void);