android_kernel_oneplus_msm8998/arch/xtensa
Max Filippov 3afc8b8464 xtensa: SMP: limit number of possible CPUs by NR_CPUS
[ Upstream commit 25384ce5f9530def39421597b1457d9462df6455 ]

This fixes the following warning at boot when the kernel is booted on a
board with more CPU cores than was configured in NR_CPUS:

  smp_init_cpus: Core Count = 8
  smp_init_cpus: Core Id = 0
  ------------[ cut here ]------------
  WARNING: CPU: 0 PID: 0 at include/linux/cpumask.h:121 smp_init_cpus+0x54/0x74
  Modules linked in:
  CPU: 0 PID: 0 Comm: swapper Not tainted 5.0.0-rc3-00015-g1459333f88a0 #124
  Call Trace:
    __warn$part$3+0x6a/0x7c
    warn_slowpath_null+0x35/0x3c
    smp_init_cpus+0x54/0x74
    setup_arch+0x1c0/0x1d0
    start_kernel+0x44/0x310
    _startup+0x107/0x107

Signed-off-by: Max Filippov <jcmvbkbc@gmail.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2019-03-23 08:44:25 +01:00
..
boot xtensa: add NOTES section to the linker script 2018-11-21 09:27:41 +01:00
configs xtensa: smp_lx200_defconfig: fix vectors clash 2019-03-23 08:44:25 +01:00
include xtensa: make sure bFLT stack is 16 byte aligned 2018-11-21 09:27:41 +01:00
kernel xtensa: SMP: limit number of possible CPUs by NR_CPUS 2019-03-23 08:44:25 +01:00
lib xtensa: fixes for configs without loop option 2015-11-02 18:02:47 +03:00
mm xtensa: fix preemption in {clear,copy}_user_highpage 2016-04-12 09:08:55 -07:00
oprofile xtensa: move oprofile stack tracing to stacktrace.c 2015-08-17 07:32:49 +03:00
platforms xtensa: don't use linux IRQ #0 2017-06-17 06:39:38 +02:00
variants xtensa: add de212 core variant 2015-11-02 18:03:09 +03:00
Kconfig xtensa: add FORCE_MAX_ZONEORDER to Kconfig 2015-11-03 17:19:37 +03:00
Kconfig.debug xtensa: disable link optimization 2014-12-15 23:47:24 -08:00
Makefile xtensa: enable building of all dtbs 2015-10-27 16:12:16 -05:00