ANDROID: Export kthread_set_per_cpu
kthread_create_on_cpu no longer marks the created thread as a per cpu thread, so the affinity might get lost on suspend or other hotplug events. Export kthread_set_per_cpu so a module that needs a kthread to stay on a specific cpu can accomplish that. Bug: 274202992 Change-Id: Iaafc12f93f341f9e0586cb051b7f1c941f140866 Signed-off-by: Arve Hjønnevåg <arve@android.com> (cherry picked from commit 4fdc7e4658212c096bd19fe7196296955942f7e5)
This commit is contained in:
parent
81c922621d
commit
e356cae969
1 changed files with 1 additions and 0 deletions
|
|
@ -601,6 +601,7 @@ void kthread_set_per_cpu(struct task_struct *k, int cpu)
|
|||
kthread->cpu = cpu;
|
||||
set_bit(KTHREAD_IS_PER_CPU, &kthread->flags);
|
||||
}
|
||||
EXPORT_SYMBOL_GPL(kthread_set_per_cpu);
|
||||
|
||||
bool kthread_is_per_cpu(struct task_struct *p)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue