]> www.infradead.org Git - users/jedix/linux-maple.git/commit
sparc64: Fix irq stack bootmem allocation.
authorAtish Patra <atish.patra@oracle.com>
Thu, 15 Sep 2016 20:54:41 +0000 (14:54 -0600)
committerAllen Pais <allen.pais@oracle.com>
Tue, 8 Nov 2016 10:06:14 +0000 (15:36 +0530)
commitd1949cff6943e87cd1a18374473850be0ede9f8f
tree19ad57115e7d923213bfc6863396f2e0e4f3d5e0
parentbcb9e2ec9685efe48544faf7dcff323bb3749b05
sparc64: Fix irq stack bootmem allocation.

Currently, irq stack bootmem is allocated for all possible cpus
before nr_cpus value changes the list of possible cpus. As a result,
there is unnecessary wastage of bootmemory.

Move the irq stack bootmem allocation so that it happens after
possible cpu list is modified based on nr_cpus value.

Orabug: 23050718

Signed-off-by: Atish Patra <atish.patra@oracle.com>
Reviewed-by: Bob Picco <bob.picco@oracle.com>
Reviewed-by: Vijay Kumar <vijay.ac.kumar@oracle.com>
(cherry picked from commit d192d0743aa6dbca0991900c490c06111b4bd86c)
Signed-off-by: Allen Pais <allen.pais@oracle.com>
arch/sparc/kernel/setup_64.c
arch/sparc/mm/init_64.c