[PATCH 1/2] metag: SMP: Fix 4KiB stack setup on secondary CPUs

2015-10-29 Thread James Hogan
Back in early 2008, 4KiB stack support was added to reduce memory consumption on workloads with lots of threads, using a separate IRQ stack per CPU to alleviate stack pressure. However the SMP code added a year and a half later didn't set up the IRQ stack when bringing up secondary CPUs, resulting

[PATCH 0/2] metag: 4KB stacks + SMP fix + tweak

2015-10-29 Thread James Hogan
A couple of patches I've applied for v4.4 relating to 4KB stack support with SMP. Basically 4KB stacks never quite worked with SMP since the IRQ stack was never set up on secondary threads. This causes boot failure if enabled accidentally. The first patch sets up and tears down the IRQ stack