MIPS: SGI-IP27: do boot CPU init later
authorThomas Bogendoerfer <tbogendoerfer@suse.de>
Tue, 19 Feb 2019 15:57:19 +0000 (16:57 +0100)
committerPaul Burton <paul.burton@mips.com>
Tue, 19 Feb 2019 20:46:03 +0000 (12:46 -0800)
commit2c8656204742a5e2d373972b139d0cc26ae93ff0
tree19c012111497259131f9dfe646617ceb6a0cb006
parent9707b7e6394216f5c56c30a56c38bffec4c0474d
MIPS: SGI-IP27: do boot CPU init later

To make use of per_cpu variables in interrupt code per_cpu_init() must
be done after setup_per_cpu_areas(). This is achieved by calling it
in smp_prepare_boot_cpu() via a new smp_ops method.

Signed-off-by: Thomas Bogendoerfer <tbogendoerfer@suse.de>
Signed-off-by: Paul Burton <paul.burton@mips.com>
Cc: Ralf Baechle <ralf@linux-mips.org>
Cc: James Hogan <jhogan@kernel.org>
Cc: linux-mips@vger.kernel.org
Cc: linux-kernel@vger.kernel.org
arch/mips/include/asm/smp-ops.h
arch/mips/kernel/smp.c
arch/mips/sgi-ip27/ip27-init.c
arch/mips/sgi-ip27/ip27-smp.c