mirror of
https://github.com/hardkernel/linux.git
synced 2026-03-25 03:50:24 +09:00
ANDROID: GKI: Export css_task_iter_start()
Export css_task_iter_start() and css_task_iter_next() and css_task_iter_end() inorder to support task iteration in a cgroup in vendor modules. Bug: 336967294 Change-Id: Id93963ddd30ab02c7a4d5086f19d15310e4eda14 Signed-off-by: seanwang1 <seanwang1@lenovo.com>
This commit is contained in:
@@ -4802,6 +4802,7 @@ void css_task_iter_start(struct cgroup_subsys_state *css, unsigned int flags,
|
||||
|
||||
spin_unlock_irq(&css_set_lock);
|
||||
}
|
||||
EXPORT_SYMBOL_GPL(css_task_iter_start);
|
||||
|
||||
/**
|
||||
* css_task_iter_next - return the next task for the iterator
|
||||
@@ -4835,6 +4836,7 @@ struct task_struct *css_task_iter_next(struct css_task_iter *it)
|
||||
|
||||
return it->cur_task;
|
||||
}
|
||||
EXPORT_SYMBOL_GPL(css_task_iter_next);
|
||||
|
||||
/**
|
||||
* css_task_iter_end - finish task iteration
|
||||
@@ -4857,6 +4859,7 @@ void css_task_iter_end(struct css_task_iter *it)
|
||||
if (it->cur_task)
|
||||
put_task_struct(it->cur_task);
|
||||
}
|
||||
EXPORT_SYMBOL_GPL(css_task_iter_end);
|
||||
|
||||
static void cgroup_procs_release(struct kernfs_open_file *of)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user