aboutsummaryrefslogtreecommitdiff
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 2762516e0a5..434010980bd 100644
--- a/lib/is_single_threaded.c
+++ b/lib/is_single_threaded.c
@@ -15,8 +15,9 @@
/*
* Returns true if the task does not share ->mm with another thread/process.
*/
-bool is_single_threaded(struct task_struct *task)
+bool current_is_single_threaded(void)
{
+ struct task_struct *task = current;
struct mm_struct *mm = task->mm;
struct task_struct *p, *t;
bool ret;