android_kernel_oneplus_msm8998/arch/xtensa/kernel
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
..
.gitignore
align.S
asm-offsets.c xtensa: fix coprocessor context offset definitions 2018-12-13 09:21:26 +01:00
coprocessor.S
entry.S xtensa: fixes for configs without loop option 2015-11-02 18:02:47 +03:00
head.S xtensa: SMP: fix secondary CPU initialization 2019-03-23 08:44:25 +01:00
irq.c xtensa: don't use linux IRQ #0 2017-06-17 06:39:38 +02:00
Makefile xtensa: fix secondary core boot in SMP 2015-11-03 17:19:38 +03:00
mcount.S
module.c
mxhead.S xtensa: drop unused sections and remapped reset handlers 2015-11-03 17:19:39 +03:00
pci-dma.c xtensa: support DMA to high memory 2015-11-09 01:25:37 +03:00
pci.c PCI: Revert "PCI: Call pci_read_bridge_bases() from core instead of arch code" 2015-09-15 13:18:04 -05:00
perf_event.c xtensa: implement fake NMI 2015-08-17 07:33:39 +03:00
platform.c
process.c xtensa: enable coprocessors that are being flushed 2018-12-13 09:21:26 +01:00
ptrace.c ARCH: AUDIT: audit_syscall_entry() should not require the arch 2014-09-23 16:21:26 -04:00
setup.c xtensa: move parse_tag_fdt out of #ifdef CONFIG_BLK_DEV_INITRD 2017-03-15 09:57:14 +08:00
signal.c Merge branch 'exec_domain_rip_v2' of git://git.kernel.org/pub/scm/linux/kernel/git/rw/misc 2015-04-15 13:53:55 -07:00
smp.c xtensa: SMP: limit number of possible CPUs by NR_CPUS 2019-03-23 08:44:25 +01:00
stacktrace.c xtensa: move oprofile stack tracing to stacktrace.c 2015-08-17 07:32:49 +03:00
syscall.c mm: larger stack guard gap, between vmas 2017-06-26 07:13:11 +02:00
time.c xtensa: SMP: fix ccount_timer_shutdown 2019-03-23 08:44:24 +01:00
traps.c signal/xtensa: Consistenly use SIGBUS in do_unaligned_user 2018-07-03 11:21:26 +02:00
vectors.S xtensa: fix secondary core boot in SMP 2015-11-03 17:19:38 +03:00
vmlinux.lds.S xtensa: add NOTES section to the linker script 2018-11-21 09:27:41 +01:00
xtensa_ksyms.c