aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/cgroup.c
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/cgroup.c')
-rw-r--r--kernel/cgroup.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/kernel/cgroup.c b/kernel/cgroup.c
index e7da66efc9fc..068f58da855a 100644
--- a/kernel/cgroup.c
+++ b/kernel/cgroup.c
@@ -1913,14 +1913,14 @@ int cgroup_scan_tasks(struct cgroup_scanner *scan)
1913 1913
1914 if (heap->size) { 1914 if (heap->size) {
1915 for (i = 0; i < heap->size; i++) { 1915 for (i = 0; i < heap->size; i++) {
1916 struct task_struct *p = heap->ptrs[i]; 1916 struct task_struct *q = heap->ptrs[i];
1917 if (i == 0) { 1917 if (i == 0) {
1918 latest_time = p->start_time; 1918 latest_time = q->start_time;
1919 latest_task = p; 1919 latest_task = q;
1920 } 1920 }
1921 /* Process the task per the caller's callback */ 1921 /* Process the task per the caller's callback */
1922 scan->process_task(p, scan); 1922 scan->process_task(q, scan);
1923 put_task_struct(p); 1923 put_task_struct(q);
1924 } 1924 }
1925 /* 1925 /*
1926 * If we had to process any tasks at all, scan again 1926 * If we had to process any tasks at all, scan again