diff options
Diffstat (limited to 'arch/arm64')
-rw-r--r-- | arch/arm64/include/asm/thread_info.h | 4 | ||||
-rw-r--r-- | arch/arm64/kernel/signal.c | 2 | ||||
-rw-r--r-- | arch/arm64/kernel/signal32.c | 4 |
3 files changed, 3 insertions, 7 deletions
diff --git a/arch/arm64/include/asm/thread_info.h b/arch/arm64/include/asm/thread_info.h index 459bf8e53208..702e1e6a0d80 100644 --- a/arch/arm64/include/asm/thread_info.h +++ b/arch/arm64/include/asm/thread_info.h | |||
@@ -48,7 +48,6 @@ struct thread_info { | |||
48 | mm_segment_t addr_limit; /* address limit */ | 48 | mm_segment_t addr_limit; /* address limit */ |
49 | struct task_struct *task; /* main task structure */ | 49 | struct task_struct *task; /* main task structure */ |
50 | struct exec_domain *exec_domain; /* execution domain */ | 50 | struct exec_domain *exec_domain; /* execution domain */ |
51 | struct restart_block restart_block; | ||
52 | int preempt_count; /* 0 => preemptable, <0 => bug */ | 51 | int preempt_count; /* 0 => preemptable, <0 => bug */ |
53 | int cpu; /* cpu */ | 52 | int cpu; /* cpu */ |
54 | }; | 53 | }; |
@@ -60,9 +59,6 @@ struct thread_info { | |||
60 | .flags = 0, \ | 59 | .flags = 0, \ |
61 | .preempt_count = INIT_PREEMPT_COUNT, \ | 60 | .preempt_count = INIT_PREEMPT_COUNT, \ |
62 | .addr_limit = KERNEL_DS, \ | 61 | .addr_limit = KERNEL_DS, \ |
63 | .restart_block = { \ | ||
64 | .fn = do_no_restart_syscall, \ | ||
65 | }, \ | ||
66 | } | 62 | } |
67 | 63 | ||
68 | #define init_thread_info (init_thread_union.thread_info) | 64 | #define init_thread_info (init_thread_union.thread_info) |
diff --git a/arch/arm64/kernel/signal.c b/arch/arm64/kernel/signal.c index 6fa792137eda..660ccf9f7524 100644 --- a/arch/arm64/kernel/signal.c +++ b/arch/arm64/kernel/signal.c | |||
@@ -131,7 +131,7 @@ asmlinkage long sys_rt_sigreturn(struct pt_regs *regs) | |||
131 | struct rt_sigframe __user *frame; | 131 | struct rt_sigframe __user *frame; |
132 | 132 | ||
133 | /* Always make any pending restarted system calls return -EINTR */ | 133 | /* Always make any pending restarted system calls return -EINTR */ |
134 | current_thread_info()->restart_block.fn = do_no_restart_syscall; | 134 | current->restart_block.fn = do_no_restart_syscall; |
135 | 135 | ||
136 | /* | 136 | /* |
137 | * Since we stacked the signal on a 128-bit boundary, then 'sp' should | 137 | * Since we stacked the signal on a 128-bit boundary, then 'sp' should |
diff --git a/arch/arm64/kernel/signal32.c b/arch/arm64/kernel/signal32.c index e299de396e9b..c20a300e2213 100644 --- a/arch/arm64/kernel/signal32.c +++ b/arch/arm64/kernel/signal32.c | |||
@@ -347,7 +347,7 @@ asmlinkage int compat_sys_sigreturn(struct pt_regs *regs) | |||
347 | struct compat_sigframe __user *frame; | 347 | struct compat_sigframe __user *frame; |
348 | 348 | ||
349 | /* Always make any pending restarted system calls return -EINTR */ | 349 | /* Always make any pending restarted system calls return -EINTR */ |
350 | current_thread_info()->restart_block.fn = do_no_restart_syscall; | 350 | current->restart_block.fn = do_no_restart_syscall; |
351 | 351 | ||
352 | /* | 352 | /* |
353 | * Since we stacked the signal on a 64-bit boundary, | 353 | * Since we stacked the signal on a 64-bit boundary, |
@@ -381,7 +381,7 @@ asmlinkage int compat_sys_rt_sigreturn(struct pt_regs *regs) | |||
381 | struct compat_rt_sigframe __user *frame; | 381 | struct compat_rt_sigframe __user *frame; |
382 | 382 | ||
383 | /* Always make any pending restarted system calls return -EINTR */ | 383 | /* Always make any pending restarted system calls return -EINTR */ |
384 | current_thread_info()->restart_block.fn = do_no_restart_syscall; | 384 | current->restart_block.fn = do_no_restart_syscall; |
385 | 385 | ||
386 | /* | 386 | /* |
387 | * Since we stacked the signal on a 64-bit boundary, | 387 | * Since we stacked the signal on a 64-bit boundary, |