diff options
author | Hiroshi Shimamoto <h-shimamoto@ct.jp.nec.com> | 2009-02-20 21:57:58 -0500 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2009-02-22 11:54:46 -0500 |
commit | a47e3ec197f515e25c77805f02d26f9e86456f65 (patch) | |
tree | 2a3a57e2b3b1e418e1b48a73c128adddf75178bd /arch/x86/ia32 | |
parent | 609162850db11dfe3b23f43b36888aa8b3ad7685 (diff) |
x86: ia32_signal: remove unused debug code
Impact: cleanup
DEBUG_SIG will not be used.
Signed-off-by: Hiroshi Shimamoto <h-shimamoto@ct.jp.nec.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'arch/x86/ia32')
-rw-r--r-- | arch/x86/ia32/ia32_signal.c | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/arch/x86/ia32/ia32_signal.c b/arch/x86/ia32/ia32_signal.c index dd77ac0cac46..adc63f81cb8e 100644 --- a/arch/x86/ia32/ia32_signal.c +++ b/arch/x86/ia32/ia32_signal.c | |||
@@ -33,8 +33,6 @@ | |||
33 | #include <asm/sigframe.h> | 33 | #include <asm/sigframe.h> |
34 | #include <asm/sys_ia32.h> | 34 | #include <asm/sys_ia32.h> |
35 | 35 | ||
36 | #define DEBUG_SIG 0 | ||
37 | |||
38 | #define _BLOCKABLE (~(sigmask(SIGKILL) | sigmask(SIGSTOP))) | 36 | #define _BLOCKABLE (~(sigmask(SIGKILL) | sigmask(SIGSTOP))) |
39 | 37 | ||
40 | #define FIX_EFLAGS (X86_EFLAGS_AC | X86_EFLAGS_OF | \ | 38 | #define FIX_EFLAGS (X86_EFLAGS_AC | X86_EFLAGS_OF | \ |
@@ -220,12 +218,6 @@ static int ia32_restore_sigcontext(struct pt_regs *regs, | |||
220 | /* Always make any pending restarted system calls return -EINTR */ | 218 | /* Always make any pending restarted system calls return -EINTR */ |
221 | current_thread_info()->restart_block.fn = do_no_restart_syscall; | 219 | current_thread_info()->restart_block.fn = do_no_restart_syscall; |
222 | 220 | ||
223 | #if DEBUG_SIG | ||
224 | printk(KERN_DEBUG "SIG restore_sigcontext: " | ||
225 | "sc=%p err(%x) eip(%x) cs(%x) flg(%x)\n", | ||
226 | sc, sc->err, sc->ip, sc->cs, sc->flags); | ||
227 | #endif | ||
228 | |||
229 | get_user_try { | 221 | get_user_try { |
230 | /* | 222 | /* |
231 | * Reload fs and gs if they have changed in the signal | 223 | * Reload fs and gs if they have changed in the signal |
@@ -488,11 +480,6 @@ int ia32_setup_frame(int sig, struct k_sigaction *ka, | |||
488 | regs->cs = __USER32_CS; | 480 | regs->cs = __USER32_CS; |
489 | regs->ss = __USER32_DS; | 481 | regs->ss = __USER32_DS; |
490 | 482 | ||
491 | #if DEBUG_SIG | ||
492 | printk(KERN_DEBUG "SIG deliver (%s:%d): sp=%p pc=%lx ra=%u\n", | ||
493 | current->comm, current->pid, frame, regs->ip, frame->pretcode); | ||
494 | #endif | ||
495 | |||
496 | return 0; | 483 | return 0; |
497 | } | 484 | } |
498 | 485 | ||
@@ -574,10 +561,5 @@ int ia32_setup_rt_frame(int sig, struct k_sigaction *ka, siginfo_t *info, | |||
574 | regs->cs = __USER32_CS; | 561 | regs->cs = __USER32_CS; |
575 | regs->ss = __USER32_DS; | 562 | regs->ss = __USER32_DS; |
576 | 563 | ||
577 | #if DEBUG_SIG | ||
578 | printk(KERN_DEBUG "SIG deliver (%s:%d): sp=%p pc=%lx ra=%u\n", | ||
579 | current->comm, current->pid, frame, regs->ip, frame->pretcode); | ||
580 | #endif | ||
581 | |||
582 | return 0; | 564 | return 0; |
583 | } | 565 | } |