Loading arch/arm/include/asm/smp_mpidr.h 0 → 100644 +12 −0 Original line number Diff line number Diff line #ifndef ASMARM_SMP_MIDR_H #define ASMARM_SMP_MIDR_H #define hard_smp_processor_id() \ ({ \ unsigned int cpunum; \ __asm__("mrc p15, 0, %0, c0, c0, 5\n" \ : "=r" (cpunum)); \ cpunum &= 0x0F; \ }) #endif arch/arm/mach-realview/include/mach/smp.h +1 −9 Original line number Diff line number Diff line #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 Loading arch/arm/mach-s5pv310/include/mach/smp.h +1 −8 Original line number Diff line number Diff line Loading @@ -7,17 +7,10 @@ #define ASM_ARCH_SMP_H __FILE__ #include <asm/hardware/gic.h> #include <asm/smp_mpidr.h> extern void __iomem *gic_cpu_base_addr; #define hard_smp_processor_id() \ ({ \ unsigned int cpunum; \ __asm__("mrc p15, 0, %0, c0, c0, 5" \ : "=r" (cpunum)); \ cpunum &= 0x03; \ }) /* * We use IRQ1 as the IPI */ Loading arch/arm/mach-tegra/include/mach/smp.h +1 −9 Original line number Diff line number Diff line #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 Loading arch/arm/mach-ux500/include/mach/smp.h +1 −8 Original line number Diff line number Diff line Loading @@ -10,18 +10,11 @@ #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); #define hard_smp_processor_id() \ ({ \ unsigned int cpunum; \ __asm__("mrc p15, 0, %0, c0, c0, 5" \ : "=r" (cpunum)); \ cpunum &= 0x0F; \ }) /* * We use IRQ1 as the IPI */ Loading Loading
arch/arm/include/asm/smp_mpidr.h 0 → 100644 +12 −0 Original line number Diff line number Diff line #ifndef ASMARM_SMP_MIDR_H #define ASMARM_SMP_MIDR_H #define hard_smp_processor_id() \ ({ \ unsigned int cpunum; \ __asm__("mrc p15, 0, %0, c0, c0, 5\n" \ : "=r" (cpunum)); \ cpunum &= 0x0F; \ }) #endif
arch/arm/mach-realview/include/mach/smp.h +1 −9 Original line number Diff line number Diff line #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 Loading
arch/arm/mach-s5pv310/include/mach/smp.h +1 −8 Original line number Diff line number Diff line Loading @@ -7,17 +7,10 @@ #define ASM_ARCH_SMP_H __FILE__ #include <asm/hardware/gic.h> #include <asm/smp_mpidr.h> extern void __iomem *gic_cpu_base_addr; #define hard_smp_processor_id() \ ({ \ unsigned int cpunum; \ __asm__("mrc p15, 0, %0, c0, c0, 5" \ : "=r" (cpunum)); \ cpunum &= 0x03; \ }) /* * We use IRQ1 as the IPI */ Loading
arch/arm/mach-tegra/include/mach/smp.h +1 −9 Original line number Diff line number Diff line #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 Loading
arch/arm/mach-ux500/include/mach/smp.h +1 −8 Original line number Diff line number Diff line Loading @@ -10,18 +10,11 @@ #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); #define hard_smp_processor_id() \ ({ \ unsigned int cpunum; \ __asm__("mrc p15, 0, %0, c0, c0, 5" \ : "=r" (cpunum)); \ cpunum &= 0x0F; \ }) /* * We use IRQ1 as the IPI */ Loading