diff options
author | Thomas Bogendoerfer <tbogendoerfer@suse.de> | 2019-02-19 18:57:19 +0300 |
---|---|---|
committer | Paul Burton <paul.burton@mips.com> | 2019-02-19 23:46:03 +0300 |
commit | 2c8656204742a5e2d373972b139d0cc26ae93ff0 (patch) | |
tree | 19c012111497259131f9dfe646617ceb6a0cb006 /arch/mips/kernel | |
parent | 9707b7e6394216f5c56c30a56c38bffec4c0474d (diff) | |
download | linux-2c8656204742a5e2d373972b139d0cc26ae93ff0.tar.xz |
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
Diffstat (limited to 'arch/mips/kernel')
-rw-r--r-- | arch/mips/kernel/smp.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/mips/kernel/smp.c b/arch/mips/kernel/smp.c index 6fd9e94fc87e..bc4bb3c6bd00 100644 --- a/arch/mips/kernel/smp.c +++ b/arch/mips/kernel/smp.c @@ -444,6 +444,8 @@ void __init smp_prepare_cpus(unsigned int max_cpus) /* preload SMP state for boot cpu */ void smp_prepare_boot_cpu(void) { + if (mp_ops->prepare_boot_cpu) + mp_ops->prepare_boot_cpu(); set_cpu_possible(0, true); set_cpu_online(0, true); } |