diff options
-rw-r--r-- | kernel/tracepoint.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/kernel/tracepoint.c b/kernel/tracepoint.c index 9cf12640de5a..3490407dc7b7 100644 --- a/kernel/tracepoint.c +++ b/kernel/tracepoint.c | |||
@@ -497,9 +497,7 @@ void syscall_regfunc(void) | |||
497 | if (!sys_tracepoint_refcount) { | 497 | if (!sys_tracepoint_refcount) { |
498 | read_lock(&tasklist_lock); | 498 | read_lock(&tasklist_lock); |
499 | for_each_process_thread(p, t) { | 499 | for_each_process_thread(p, t) { |
500 | /* Skip kernel threads. */ | 500 | set_tsk_thread_flag(t, TIF_SYSCALL_TRACEPOINT); |
501 | if (!(t->flags & PF_KTHREAD)) | ||
502 | set_tsk_thread_flag(t, TIF_SYSCALL_TRACEPOINT); | ||
503 | } | 501 | } |
504 | read_unlock(&tasklist_lock); | 502 | read_unlock(&tasklist_lock); |
505 | } | 503 | } |