diff options
author | Jeff Dike <jdike@addtoit.com> | 2008-02-04 22:30:40 -0800 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2008-02-05 09:44:25 -0800 |
commit | 9226b8384776798986640ce07764d17ba66aa54f (patch) | |
tree | cffd1f6e14124729da114192aee83fe88e9f21e5 /arch/um/sys-x86_64 | |
parent | 06d9bd3ad6da2422f838fd11d5d5348fa579bdb2 (diff) | |
download | kernel_samsung_smdk4412-9226b8384776798986640ce07764d17ba66aa54f.zip kernel_samsung_smdk4412-9226b8384776798986640ce07764d17ba66aa54f.tar.gz kernel_samsung_smdk4412-9226b8384776798986640ce07764d17ba66aa54f.tar.bz2 |
uml: further bugs.c tidying
bugs.c, for both i386 and x86_64, can undergo further cleaning -
The i386 arch_check_bugs only does one thing, so we might as
well inline the cmov checking.
The i386 includes can be trimmed down a bit.
arch_init_thread wasn't used, so it is deleted.
The panics in arch_handle_signal are turned into printks
because the process is about to get segfaulted anyway, so something is
dying no matter what happens here. Also, the return value was always
the same, so it contained no information, so it can be void instead.
The name is changed to arch_examine_signal because it doesn't handle
anything.
The caller of arch_handle_signal, relay_signal, does things in
a different order. The kernel-mode signal check is now first, which
puts everything else together, making things a bit clearer conceptually.
[akpm@linux-foundation.org: coding-style fixes]
Signed-off-by: Jeff Dike <jdike@linux.intel.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'arch/um/sys-x86_64')
-rw-r--r-- | arch/um/sys-x86_64/bugs.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/arch/um/sys-x86_64/bugs.c b/arch/um/sys-x86_64/bugs.c index 506b676..44e02ba 100644 --- a/arch/um/sys-x86_64/bugs.c +++ b/arch/um/sys-x86_64/bugs.c @@ -6,15 +6,10 @@ #include "sysdep/ptrace.h" -void arch_init_thread(void) -{ -} - void arch_check_bugs(void) { } -int arch_handle_signal(int sig, struct uml_pt_regs *regs) +void arch_examine_signal(int sig, struct uml_pt_regs *regs) { - return 0; } |