aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/is_single_threaded.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/is_single_threaded.c b/lib/is_single_threaded.c
index 2762516e0a5e..434010980bdf 100644
--- a/lib/is_single_threaded.c
+++ b/lib/is_single_threaded.c
@@ -15,8 +15,9 @@
15/* 15/*
16 * Returns true if the task does not share ->mm with another thread/process. 16 * Returns true if the task does not share ->mm with another thread/process.
17 */ 17 */
18bool is_single_threaded(struct task_struct *task) 18bool current_is_single_threaded(void)
19{ 19{
20 struct task_struct *task = current;
20 struct mm_struct *mm = task->mm; 21 struct mm_struct *mm = task->mm;
21 struct task_struct *p, *t; 22 struct task_struct *p, *t;
22 bool ret; 23 bool ret;