Skip to contentSkip to conversation

Fixes nr_cpus bug along with irq stack bootmem allocation.

PATCH Applied Atish Patra 1 participant 1 message Sep 15, 2016

v1 of 2 Applied Latest is v2 →

lore
Share & tools
lore
#0 lore raw

cover Fixes nr_cpus bug along with irq stack bootmem allocation.

The first patch fixes a panic caused by nr_cpus boot parameter. In addition to that, irq stack boot memory is allocated before cpu_possible_mask is modified. This can lead to wastage of boot memory if nr_cpus is set to a lower value. The second patch addresses this issue.

Atish Patra (2):
sparc64: Fix cpu_possible_mask if nr_cpus is set
sparc64: Fix irq stack bootmem allocation.

 arch/sparc/include/asm/smp_64.h |    1 +
 arch/sparc/kernel/setup_64.c    |   26 ++++++++++++++++++++++++++
 arch/sparc/kernel/smp_64.c      |   14 ++++++++++++++
 arch/sparc/mm/init_64.c         |   16 ----------------
 4 files changed, 41 insertions(+), 16 deletions(-)