Commit 86e62b93 authored by Russell King's avatar Russell King

ARM: SMP: remove smp_mpidr.h

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: default avatarRussell King <rmk+kernel@arm.linux.org.uk>
parent f36d3401
#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
...@@ -2,7 +2,6 @@ ...@@ -2,7 +2,6 @@
#define ASMARM_ARCH_SMP_H #define ASMARM_ARCH_SMP_H
#include <asm/hardware/gic.h> #include <asm/hardware/gic.h>
#include <asm/smp_mpidr.h>
/* /*
* We use IRQ1 as the IPI * We use IRQ1 as the IPI
......
...@@ -7,7 +7,6 @@ ...@@ -7,7 +7,6 @@
#define ASM_ARCH_SMP_H __FILE__ #define ASM_ARCH_SMP_H __FILE__
#include <asm/hardware/gic.h> #include <asm/hardware/gic.h>
#include <asm/smp_mpidr.h>
extern void __iomem *gic_cpu_base_addr; extern void __iomem *gic_cpu_base_addr;
......
...@@ -2,7 +2,6 @@ ...@@ -2,7 +2,6 @@
#define ASMARM_ARCH_SMP_H #define ASMARM_ARCH_SMP_H
#include <asm/hardware/gic.h> #include <asm/hardware/gic.h>
#include <asm/smp_mpidr.h>
/* /*
* We use IRQ1 as the IPI * We use IRQ1 as the IPI
......
...@@ -10,7 +10,6 @@ ...@@ -10,7 +10,6 @@
#define ASMARM_ARCH_SMP_H #define ASMARM_ARCH_SMP_H
#include <asm/hardware/gic.h> #include <asm/hardware/gic.h>
#include <asm/smp_mpidr.h>
/* This is required to wakeup the secondary core */ /* This is required to wakeup the secondary core */
extern void u8500_secondary_startup(void); extern void u8500_secondary_startup(void);
......
...@@ -2,7 +2,6 @@ ...@@ -2,7 +2,6 @@
#define __MACH_SMP_H #define __MACH_SMP_H
#include <asm/hardware/gic.h> #include <asm/hardware/gic.h>
#include <asm/smp_mpidr.h>
/* /*
* We use IRQ1 as the IPI * We use IRQ1 as the IPI
......
...@@ -18,7 +18,6 @@ ...@@ -18,7 +18,6 @@
#define OMAP_ARCH_SMP_H #define OMAP_ARCH_SMP_H
#include <asm/hardware/gic.h> #include <asm/hardware/gic.h>
#include <asm/smp_mpidr.h>
/* Needed for secondary core boot */ /* Needed for secondary core boot */
extern void omap_secondary_startup(void); extern void omap_secondary_startup(void);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment