sh: unwinder: Convert frame allocations to GFP_ATOMIC.
authorPaul Mundt <lethal@linux-sh.org>
Fri, 14 Aug 2009 14:58:37 +0000 (23:58 +0900)
committerPaul Mundt <lethal@linux-sh.org>
Fri, 14 Aug 2009 14:58:37 +0000 (23:58 +0900)
commit0fc11e3618bb1f9e0640127ec84f5d2690fa3894
tree574050acc37269c5f7925cdd5d63a0714242102e
parent718dbf376ac39b8f8c974e9162430754dbace742
sh: unwinder: Convert frame allocations to GFP_ATOMIC.

save_stack_trace_tsk() and friends can be called from atomic context (as
triggered by latencytop), and subsequently hit two problematic allocation
points that were using GFP_KERNEL (these were dwarf_unwind_stack() and
dwarf_frame_alloc_regs()). Convert these over to GFP_ATOMIC and get
latencytop working with the DWARF unwinder.

Signed-off-by: Paul Mundt <lethal@linux-sh.org>
arch/sh/kernel/dwarf.c