alistair23-linux/arch/arm64/include/asm
Javi Merino 4c7aa00213 arm64: kernel: initialise cpu_logical_map from the DT
When booting the kernel, the cpu logical id map must be initialised
using device tree data passed by FW or through an embedded blob.

This patch parses the reg property in device tree "cpu" nodes,
retrieves the corresponding CPUs hardware identifiers (MPIDR) and
initialises the cpu logical map accordingly.

The device tree HW identifiers are considered valid if all CPU nodes
contain a "reg" property, there are no duplicate "reg" entries and the
DT defines a CPU node whose "reg" property defines affinity levels
that matches those of the boot CPU.

The primary CPU is assigned cpu logical number 0 to keep the current
convention valid.

Based on a0ae024050 (ARM: kernel: add
device tree init map function).

Signed-off-by: Javi Merino <javi.merino@arm.com>
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
2013-03-20 17:26:24 +00:00
..
arch_timer.h arm64: move from arm_generic to arm_arch_timer 2013-01-31 15:51:59 +00:00
asm-offsets.h
assembler.h arm64: move vector entry macro to assembler.h 2012-12-05 11:26:47 +00:00
atomic.h arm64: atomics: fix grossly inconsistent asm constraints for exclusives 2013-02-11 18:16:41 +00:00
barrier.h arm64: Miscellaneous header files 2012-09-17 13:42:21 +01:00
bitops.h arm64: Miscellaneous library functions 2012-09-17 13:42:18 +01:00
cache.h arm64: Cache maintenance routines 2012-09-17 13:42:00 +01:00
cacheflush.h arm64: Convert empty flush_cache_{mm,page} functions to static inline 2012-11-23 18:15:32 +00:00
cachetype.h arm64: Cache maintenance routines 2012-09-17 13:42:00 +01:00
cmpxchg.h arm64: atomics: fix grossly inconsistent asm constraints for exclusives 2013-02-11 18:16:41 +00:00
compat.h arm64: Include linux/ptrace.h in asm/compat.h 2013-01-02 11:50:19 +00:00
compiler.h arm64: Miscellaneous header files 2012-09-17 13:42:21 +01:00
cputable.h arm64: CPU support 2012-09-17 13:41:59 +01:00
cputype.h arm64: kernel: initialise cpu_logical_map from the DT 2013-03-20 17:26:24 +00:00
debug-monitors.h arm64: Debugging support 2012-09-17 13:42:14 +01:00
device.h arm64: Device specific operations 2012-09-17 13:42:04 +01:00
dma-mapping.h ARM64: dma_debug: add debug_dma_mapping_error support 2012-11-28 15:28:57 +01:00
elf.h arm64: elf: fix core dumping to match what glibc expects 2013-01-22 17:50:59 +00:00
exception.h arm64: Miscellaneous header files 2012-09-17 13:42:21 +01:00
exec.h arm64: Miscellaneous header files 2012-09-17 13:42:21 +01:00
fb.h arm64: Device specific operations 2012-09-17 13:42:04 +01:00
fpsimd.h arm64: elf: fix core dumping definitions for GP and FP registers 2012-11-08 16:06:20 +00:00
fpsimdmacros.h arm64: move FP-SIMD save/restore code to a macro 2012-12-05 11:26:50 +00:00
futex.h arm64: atomics: fix grossly inconsistent asm constraints for exclusives 2013-02-11 18:16:41 +00:00
hardirq.h arm64: SMP support 2012-09-17 13:42:06 +01:00
hw_breakpoint.h arm64: Debugging support 2012-09-17 13:42:14 +01:00
hwcap.h UAPI: (Scripted) Disintegrate arch/arm64/include/asm 2012-10-11 11:05:13 +01:00
io.h arm64: Add simple earlyprintk support 2013-01-22 17:51:01 +00:00
irq.h arm64: IRQ handling 2012-09-17 13:42:02 +01:00
irqflags.h arm64: IRQ handling 2012-09-17 13:42:02 +01:00
Kbuild arm64: Add kvm_para.h and xor.h generic headers 2013-01-29 17:39:15 +00:00
linkage.h arm64: fix alignment padding in assembly code 2012-10-20 11:12:01 +01:00
memblock.h arm64: MMU initialisation 2012-09-17 13:41:56 +01:00
memory.h arm64: Add simple earlyprintk support 2013-01-22 17:51:01 +00:00
mmu.h arm64: Add simple earlyprintk support 2013-01-22 17:51:01 +00:00
mmu_context.h arm64: mm: update CONTEXTIDR register to contain PID of current process 2013-02-11 18:24:18 +00:00
module.h arm64: Loadable modules 2012-09-17 13:42:19 +01:00
page.h arm64: MMU fault handling and page table management 2012-09-17 13:41:57 +01:00
perf_event.h arm64: perf: add guest vs host discrimination 2013-01-29 16:56:17 +00:00
pgalloc.h arm64: MMU fault handling and page table management 2012-09-17 13:41:57 +01:00
pgtable-2level-hwdef.h arm64: MMU definitions 2012-09-17 13:41:56 +01:00
pgtable-2level-types.h arm64: MMU definitions 2012-09-17 13:41:56 +01:00
pgtable-3level-hwdef.h arm64: MMU definitions 2012-09-17 13:41:56 +01:00
pgtable-3level-types.h arm64: MMU definitions 2012-09-17 13:41:56 +01:00
pgtable-hwdef.h arm64: Distinguish between user and kernel XN bits 2012-11-16 15:50:25 +00:00
pgtable.h arm64: mm: introduce present, faulting entries for PAGE_NONE 2013-01-10 10:48:48 +00:00
pmu.h arm64: Performance counters support 2012-09-17 13:42:17 +01:00
proc-fns.h arm64: CPU support 2012-09-17 13:41:59 +01:00
processor.h Merge branch 'arch-microblaze' into no-rebases 2012-11-16 22:28:43 -05:00
prom.h arm64: Build infrastructure 2012-09-17 13:42:21 +01:00
psci.h arm64: psci: add support for PSCI invocations from the kernel 2013-01-29 16:56:37 +00:00
ptrace.h arm64: add COMPAT_PSR_*_BIT flags 2013-01-29 16:56:17 +00:00
shmparam.h arm64: ELF definitions 2012-09-17 13:42:07 +01:00
sigcontext.h UAPI: (Scripted) Disintegrate arch/arm64/include/asm 2012-10-11 11:05:13 +01:00
signal32.h arm64: 32-bit (compat) applications support 2012-09-17 13:42:12 +01:00
smp.h arm64: SMP: enable PSCI boot method 2013-01-29 16:56:37 +00:00
smp_plat.h arm64: kernel: initialise cpu_logical_map from the DT 2013-03-20 17:26:24 +00:00
sparsemem.h arm64: MMU definitions 2012-09-17 13:41:56 +01:00
spinlock.h arm64: atomics: fix grossly inconsistent asm constraints for exclusives 2013-02-11 18:16:41 +00:00
spinlock_types.h arm64: SMP support 2012-09-17 13:42:06 +01:00
stacktrace.h arm64: Exception handling 2012-09-17 10:24:46 +01:00
stat.h UAPI: (Scripted) Disintegrate arch/arm64/include/asm 2012-10-11 11:05:13 +01:00
syscall.h arm64: Miscellaneous library functions 2012-09-17 13:42:18 +01:00
syscalls.h arm64: switch to generic sigaltstack 2013-02-14 09:17:29 -05:00
system_misc.h arm64: Miscellaneous header files 2012-09-17 13:42:21 +01:00
thread_info.h arm64: Process management 2012-09-17 13:41:58 +01:00
timex.h arm64: Generic timers support 2012-09-17 13:42:20 +01:00
tlb.h arm64: TLB maintenance functionality 2012-09-17 13:42:01 +01:00
tlbflush.h arm64: TLB maintenance functionality 2012-09-17 13:42:01 +01:00
traps.h arm64: Exception handling 2012-09-17 10:24:46 +01:00
uaccess.h arm64: User access library functions 2012-09-17 13:42:11 +01:00
ucontext.h arm64: fix padding computation in struct ucontext 2013-03-18 10:42:16 +00:00
unistd.h burying unused conditionals 2013-02-14 09:21:15 -05:00
unistd32.h fix compat truncate/ftruncate 2013-02-25 09:24:55 -05:00
vdso.h arm64: VDSO support 2012-09-17 13:42:09 +01:00
vdso_datapage.h arm64: VDSO support 2012-09-17 13:42:09 +01:00
virt.h arm64: add hypervisor stub 2012-12-05 11:26:49 +00:00