]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/commit
MIPS: Loongson: Allow booting from any core
authorHuacai Chen <chenhc@lemote.com>
Tue, 4 Nov 2014 06:13:26 +0000 (14:13 +0800)
committerRalf Baechle <ralf@linux-mips.org>
Mon, 24 Nov 2014 06:45:01 +0000 (07:45 +0100)
commitec0f8d3fbb7ea12cfd10083e340381b96e7c34f8
tree9550596fd52cccb8b7026c7135553255ddb0313d
parentf490682a6b21ffed5acd7a0d49d8371e5e625d7a
MIPS: Loongson: Allow booting from any core

By offering Logical->Physical core id mapping, so as to reserve some
physical cores via mask. This allow booting from any core when core-0
has problems. Since the maximun cores supported by Loongson-3 is 16,
32-bit cpu_startup_core_id can be split to 16-bit cpu_startup_core_id
and 16-bit reserved_cores_mask for compatibility.

Signed-off-by: Huacai Chen <chenhc@lemote.com>
Cc: John Crispin <john@phrozen.org>
Cc: Steven J. Hill <Steven.Hill@imgtec.com>
Cc: linux-mips@linux-mips.org
Cc: Fuxin Zhang <zhangfx@lemote.com>
Cc: Zhangjin Wu <wuzhangjin@gmail.com>
Patchwork: https://patchwork.linux-mips.org/patch/8323/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
arch/mips/include/asm/mach-loongson/boot_param.h
arch/mips/include/asm/mach-loongson/irq.h
arch/mips/include/asm/mach-loongson/topology.h
arch/mips/loongson/common/env.c
arch/mips/loongson/loongson-3/irq.c
arch/mips/loongson/loongson-3/numa.c
arch/mips/loongson/loongson-3/smp.c