Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 212409
b: refs/heads/master
c: 0671735
h: refs/heads/master
i:
  212407: 7a3dd8d
v: v3
  • Loading branch information
Russell King committed Oct 4, 2010
1 parent 70afdc7 commit 87e7bb8
Show file tree
Hide file tree
Showing 8 changed files with 19 additions and 54 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 971acb9b420ea1662dd3c48184c4315f87643be5
refs/heads/master: 067173526c3bbc2eaeefcf6b7b2a9d998b9e8042
12 changes: 12 additions & 0 deletions trunk/arch/arm/include/asm/smp_mpidr.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
#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
10 changes: 1 addition & 9 deletions trunk/arch/arm/mach-realview/include/mach/smp.h
Original file line number Diff line number Diff line change
@@ -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
Expand Down
9 changes: 1 addition & 8 deletions trunk/arch/arm/mach-s5pv310/include/mach/smp.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
*/
Expand Down
10 changes: 1 addition & 9 deletions trunk/arch/arm/mach-tegra/include/mach/smp.h
Original file line number Diff line number Diff line change
@@ -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
Expand Down
9 changes: 1 addition & 8 deletions trunk/arch/arm/mach-ux500/include/mach/smp.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
*/
Expand Down
9 changes: 1 addition & 8 deletions trunk/arch/arm/mach-vexpress/include/mach/smp.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,7 @@
#define __MACH_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
Expand Down
12 changes: 1 addition & 11 deletions trunk/arch/arm/plat-omap/include/plat/smp.h
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
#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);
Expand All @@ -33,15 +34,4 @@ static inline void smp_cross_call(const struct cpumask *mask)
gic_raise_softirq(mask, 1);
}

/*
* Read MPIDR: Multiprocessor affinity register
*/
#define hard_smp_processor_id() \
({ \
unsigned int cpunum; \
__asm__("mrc p15, 0, %0, c0, c0, 5" \
: "=r" (cpunum)); \
cpunum &= 0x0F; \
})

#endif

0 comments on commit 87e7bb8

Please sign in to comment.