aboutsummaryrefslogtreecommitdiffstats
path: root/arch/s390/kernel/process.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/s390/kernel/process.c')
-rw-r--r--arch/s390/kernel/process.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/arch/s390/kernel/process.c b/arch/s390/kernel/process.c
index 481d7a83efc6..bba4fa74b321 100644
--- a/arch/s390/kernel/process.c
+++ b/arch/s390/kernel/process.c
@@ -68,9 +68,10 @@ extern void kernel_thread_starter(void);
68/* 68/*
69 * Free current thread data structures etc.. 69 * Free current thread data structures etc..
70 */ 70 */
71void exit_thread(void) 71void exit_thread(struct task_struct *tsk)
72{ 72{
73 exit_thread_runtime_instr(); 73 if (tsk == current)
74 exit_thread_runtime_instr();
74} 75}
75 76
76void flush_thread(void) 77void flush_thread(void)