summaryrefslogtreecommitdiffstats
path: root/arch/x86/kernel/irq_32.c
diff options
context:
space:
mode:
authorSteven Rostedt2014-02-06 15:41:32 +0100
committerH. Peter Anvin2014-03-07 01:56:55 +0100
commit2223f6f6eeaad6ea0a3acd3f4bc1ae45e8117ddc (patch)
treea782943537fd1c0b63f45907ad88d2eb093745c4 /arch/x86/kernel/irq_32.c
parentx86: Keep thread_info on thread stack in x86_32 (diff)
downloadkernel-qcow2-linux-2223f6f6eeaad6ea0a3acd3f4bc1ae45e8117ddc.tar.gz
kernel-qcow2-linux-2223f6f6eeaad6ea0a3acd3f4bc1ae45e8117ddc.tar.xz
kernel-qcow2-linux-2223f6f6eeaad6ea0a3acd3f4bc1ae45e8117ddc.zip
x86: Clean up dumpstack_64.c code
The dump_trace() function in dumpstack_64.c is hard to follow. The test for exception stack is processed differently than the test for irq stack, and the normal stack is outside completely. By restructuring this code to have all the stacks determined by a single function that returns an enum of the following: STACK_IS_NORMAL STACK_IS_EXCEPTION STACK_IS_IRQ STACK_IS_UNKNOWN and has the logic of each within a switch statement. This should make the code much easier to read and understand. Link: http://lkml.kernel.org/r/20110806012354.684598995@goodmis.org Cc: Andrew Morton <akpm@linux-foundation.org> Cc: Peter Zijlstra <peterz@infradead.org> Cc: Brian Gerst <brgerst@gmail.com> Signed-off-by: Steven Rostedt <rostedt@goodmis.org> Link: http://lkml.kernel.org/r/20140206144322.086050042@goodmis.org Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
Diffstat (limited to 'arch/x86/kernel/irq_32.c')
0 files changed, 0 insertions, 0 deletions