x86: Unspaghettize do_trap()
authorFrederic Weisbecker <fweisbec@gmail.com>
Tue, 25 Sep 2012 12:51:19 +0000 (14:51 +0200)
committerIngo Molnar <mingo@kernel.org>
Wed, 26 Sep 2012 11:36:50 +0000 (13:36 +0200)
commitc416ddf5b909736f5b57d348f5de159693e699ad
treec552314d78d7950a9751cc18f394b5daa5ce2327
parent1b2b23d8573076a587ed2081e0d2b69691079e0e
x86: Unspaghettize do_trap()

Cleanup the label maze in this function. Having a
seperate function to first handle the traps that don't
generate a signal makes it easier to convert into
more readable conditional paths.

Signed-off-by: Frederic Weisbecker <fweisbec@gmail.com>
Cc: Oleg Nesterov <oleg@redhat.com>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Andrew Morton <akpm@linux-foundation.org>
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Link: http://lkml.kernel.org/r/1348577479-2564-1-git-send-email-fweisbec@gmail.com
[ Fixed 32-bit build failure. ]
Signed-off-by: Ingo Molnar <mingo@kernel.org>
arch/x86/kernel/traps.c