diff options
Diffstat (limited to 'arch/m68k')
-rw-r--r-- | arch/m68k/include/asm/thread_info.h | 4 | ||||
-rw-r--r-- | arch/m68k/kernel/signal.c | 4 |
2 files changed, 2 insertions, 6 deletions
diff --git a/arch/m68k/include/asm/thread_info.h b/arch/m68k/include/asm/thread_info.h index 21a4784ca5a1..c54256e69e64 100644 --- a/arch/m68k/include/asm/thread_info.h +++ b/arch/m68k/include/asm/thread_info.h | |||
@@ -31,7 +31,6 @@ struct thread_info { | |||
31 | int preempt_count; /* 0 => preemptable, <0 => BUG */ | 31 | int preempt_count; /* 0 => preemptable, <0 => BUG */ |
32 | __u32 cpu; /* should always be 0 on m68k */ | 32 | __u32 cpu; /* should always be 0 on m68k */ |
33 | unsigned long tp_value; /* thread pointer */ | 33 | unsigned long tp_value; /* thread pointer */ |
34 | struct restart_block restart_block; | ||
35 | }; | 34 | }; |
36 | #endif /* __ASSEMBLY__ */ | 35 | #endif /* __ASSEMBLY__ */ |
37 | 36 | ||
@@ -41,9 +40,6 @@ struct thread_info { | |||
41 | .exec_domain = &default_exec_domain, \ | 40 | .exec_domain = &default_exec_domain, \ |
42 | .addr_limit = KERNEL_DS, \ | 41 | .addr_limit = KERNEL_DS, \ |
43 | .preempt_count = INIT_PREEMPT_COUNT, \ | 42 | .preempt_count = INIT_PREEMPT_COUNT, \ |
44 | .restart_block = { \ | ||
45 | .fn = do_no_restart_syscall, \ | ||
46 | }, \ | ||
47 | } | 43 | } |
48 | 44 | ||
49 | #define init_stack (init_thread_union.stack) | 45 | #define init_stack (init_thread_union.stack) |
diff --git a/arch/m68k/kernel/signal.c b/arch/m68k/kernel/signal.c index 967a8b7e1527..d7179281e74a 100644 --- a/arch/m68k/kernel/signal.c +++ b/arch/m68k/kernel/signal.c | |||
@@ -655,7 +655,7 @@ restore_sigcontext(struct pt_regs *regs, struct sigcontext __user *usc, void __u | |||
655 | int err = 0; | 655 | int err = 0; |
656 | 656 | ||
657 | /* Always make any pending restarted system calls return -EINTR */ | 657 | /* Always make any pending restarted system calls return -EINTR */ |
658 | current_thread_info()->restart_block.fn = do_no_restart_syscall; | 658 | current->restart_block.fn = do_no_restart_syscall; |
659 | 659 | ||
660 | /* get previous context */ | 660 | /* get previous context */ |
661 | if (copy_from_user(&context, usc, sizeof(context))) | 661 | if (copy_from_user(&context, usc, sizeof(context))) |
@@ -693,7 +693,7 @@ rt_restore_ucontext(struct pt_regs *regs, struct switch_stack *sw, | |||
693 | int err; | 693 | int err; |
694 | 694 | ||
695 | /* Always make any pending restarted system calls return -EINTR */ | 695 | /* Always make any pending restarted system calls return -EINTR */ |
696 | current_thread_info()->restart_block.fn = do_no_restart_syscall; | 696 | current->restart_block.fn = do_no_restart_syscall; |
697 | 697 | ||
698 | err = __get_user(temp, &uc->uc_mcontext.version); | 698 | err = __get_user(temp, &uc->uc_mcontext.version); |
699 | if (temp != MCONTEXT_VERSION) | 699 | if (temp != MCONTEXT_VERSION) |