sparc64: Fix irq stack bootmem allocation.
authorAtish Patra <atish.patra@oracle.com>
Thu, 15 Sep 2016 20:54:41 +0000 (14:54 -0600)
committerDavid S. Miller <davem@davemloft.net>
Wed, 28 Sep 2016 15:24:03 +0000 (08:24 -0700)
commitebb99a4c12e4daabe1940ae936e8e7e97ae68c6f
treee857fbe7a91bb78022da0b9c1abee53ffa06c6df
parent9b2f753ec23710aa32c0d837d2499db92fe9115b
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.

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>
Signed-off-by: David S. Miller <davem@davemloft.net>
arch/sparc/kernel/setup_64.c
arch/sparc/mm/init_64.c