diff options
| author | Javi Merino <javi.merino@arm.com> | 2012-08-29 13:32:18 -0400 |
|---|---|---|
| committer | Catalin Marinas <catalin.marinas@arm.com> | 2013-03-20 14:09:42 -0400 |
| commit | 0359b0e2d0bbd28289c38ebe779b5f1c61f8ccc8 (patch) | |
| tree | 72012e79026c22a566dba7a9df904a0c60c80475 /arch/arm64/kernel | |
| parent | 4c7aa0021356ee91b96cea51b8b7fadebaba489e (diff) | |
arm64: head: match all affinity levels in the pen of the secondaries
The reg property of the cpu nodes in the DT now contains all the
affinity levels in (MPIDR[39:32] and MPIDR[23:0]) and that's what
boot_secondary() writes in the pen, so increase the mask in
secondary_holding_pen accordingly.
Signed-off-by: Javi Merino <javi.merino@arm.com>
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
Diffstat (limited to 'arch/arm64/kernel')
| -rw-r--r-- | arch/arm64/kernel/head.S | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/arch/arm64/kernel/head.S b/arch/arm64/kernel/head.S index 0a0a49756826..53dcae49e729 100644 --- a/arch/arm64/kernel/head.S +++ b/arch/arm64/kernel/head.S | |||
| @@ -26,6 +26,7 @@ | |||
| 26 | #include <asm/assembler.h> | 26 | #include <asm/assembler.h> |
| 27 | #include <asm/ptrace.h> | 27 | #include <asm/ptrace.h> |
| 28 | #include <asm/asm-offsets.h> | 28 | #include <asm/asm-offsets.h> |
| 29 | #include <asm/cputype.h> | ||
| 29 | #include <asm/memory.h> | 30 | #include <asm/memory.h> |
| 30 | #include <asm/thread_info.h> | 31 | #include <asm/thread_info.h> |
| 31 | #include <asm/pgtable-hwdef.h> | 32 | #include <asm/pgtable-hwdef.h> |
| @@ -229,7 +230,8 @@ ENTRY(secondary_holding_pen) | |||
| 229 | bl __calc_phys_offset // x24=phys offset | 230 | bl __calc_phys_offset // x24=phys offset |
| 230 | bl el2_setup // Drop to EL1 | 231 | bl el2_setup // Drop to EL1 |
| 231 | mrs x0, mpidr_el1 | 232 | mrs x0, mpidr_el1 |
| 232 | and x0, x0, #15 // CPU number | 233 | ldr x1, =MPIDR_HWID_BITMASK |
| 234 | and x0, x0, x1 | ||
| 233 | adr x1, 1b | 235 | adr x1, 1b |
| 234 | ldp x2, x3, [x1] | 236 | ldp x2, x3, [x1] |
| 235 | sub x1, x1, x2 | 237 | sub x1, x1, x2 |
