]> Pileus Git - ~andy/linux/blobdiff - lib/is_single_threaded.c
kernel: rename is_single_threaded(task) to current_is_single_threaded(void)
[~andy/linux] / lib / is_single_threaded.c
index 2762516e0a5ee57ab1feceea4c096e85a59e0c47..434010980bdf9b3ae6b66f2982da1b5a92e20c47 100644 (file)
@@ -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;