x86, UV: Remove cpumask_t from the stack
authorcpw@sgi.com <cpw@sgi.com>
Tue, 21 Jun 2011 12:21:31 +0000 (07:21 -0500)
committerIngo Molnar <mingo@elte.hu>
Tue, 21 Jun 2011 12:50:33 +0000 (14:50 +0200)
commit442d3924926c62741912d8a930220af253922007
tree7ea9f7c0e8133037d36e31e7c4f033fae95abcca
parenta456eaab87461e33d94e748565eabd474283a475
x86, UV: Remove cpumask_t from the stack

Remove the large stack-resident cpumask_t from
reset_with_ipi()'s stack by allocating one per uvhub.

Due to the limited size of the stack the potentially huge cpumask_t may
cause stack overrun.  We haven't seen it happen yet, but we need to make it
a practice not to push such structures onto the stack.

Signed-off-by: Cliff Wickman <cpw@sgi.com>
Reviewed-by: Pekka Enberg <penberg@kernel.org>
Link: http://lkml.kernel.org/r/20110621122242.832589130@sgi.com
Signed-off-by: Ingo Molnar <mingo@elte.hu>
arch/x86/include/asm/uv/uv_bau.h
arch/x86/platform/uv/tlb_uv.c