linux-uconsole/arch/xtensa/kernel
Max Filippov 419bb616e9 xtensa: SMP: limit number of possible CPUs by NR_CPUS
[ Upstream commit 25384ce5f9 ]

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-13 14:02:29 -07:00
..
.gitignore xtensa: tell git to ignore generated files 2013-06-05 10:14:19 -07:00
align.S xtensa: clean up word alignment macros in assembly code 2017-12-10 14:48:53 -08:00
asm-offsets.c xtensa: fix coprocessor context offset definitions 2018-12-05 19:32:05 +01:00
coprocessor.S xtensa: use call instead of callx in assembly code 2017-12-10 14:48:52 -08:00
entry.S Kbuild: rename CC_STACKPROTECTOR[_STRONG] config variables 2018-06-14 12:21:18 +09:00
head.S xtensa: SMP: fix secondary CPU initialization 2019-03-13 14:02:28 -07:00
hw_breakpoint.c perf/arch/xtensa: Implement hw_breakpoint_arch_parse() 2018-06-26 09:07:58 +02:00
irq.c xtensa: drop variant IRQ support 2018-08-20 12:28:05 -07:00
Makefile xtensa: build kernel with text-section-literals 2017-12-10 14:48:51 -08:00
mcount.S xtensa: add static function tracer support 2013-07-08 01:18:57 -07:00
module.c xtensa: clean up custom-controlled debug output 2017-12-16 22:37:08 -08:00
mxhead.S xtensa: drop unused sections and remapped reset handlers 2015-11-03 17:19:39 +03:00
pci-dma.c Xtensa improvements for v4.19: 2018-08-22 14:04:41 -07:00
pci.c xtensa/PCI: Use dev_printk() when possible 2018-05-22 07:56:17 -05:00
perf_event.c cpu/hotplug: Cleanup state names 2016-12-25 10:47:44 +01:00
platform.c xtensa: cleanup ccount frequency tracking 2013-07-08 01:11:37 -07:00
process.c xtensa: fix get_wchan 2019-03-10 07:17:21 +01:00
ptrace.c xtensa: fix coprocessor part of ptrace_{get,set}xregs 2018-12-05 19:32:06 +01:00
s32c1i_selftest.c xtensa: move S32C1I self-test to a separate file 2016-11-16 15:08:28 -08:00
setup.c xtensa: make bootparam parsing optional 2018-08-20 12:28:05 -07:00
signal.c xtensa: clean up custom-controlled debug output 2017-12-16 22:37:08 -08:00
smp.c xtensa: SMP: limit number of possible CPUs by NR_CPUS 2019-03-13 14:02:29 -07:00
stacktrace.c xtensa: clean up access to spilled registers locations 2017-05-01 10:34:43 -07:00
syscall.c mm: add ksys_fadvise64_64() helper; remove in-kernel call to sys_fadvise64_64() 2018-04-02 20:16:10 +02:00
time.c xtensa: SMP: fix ccount_timer_shutdown 2019-03-13 14:02:28 -07:00
traps.c signal/xtensa: Use force_sig_fault where appropriate 2018-04-25 10:44:12 -05:00
vectors.S xtensa: use call instead of callx in assembly code 2017-12-10 14:48:52 -08:00
vmlinux.lds.S xtensa: add NOTES section to the linker script 2018-11-21 09:19:16 +01:00
xtensa_ksyms.c xtensa: use generic strncpy_from_user with KASAN 2017-12-17 15:34:57 -08:00