mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-05 02:21:52 +09:00
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 4fdc7e4658)
This commit is contained in:
committed by
Todd Kjos
parent
81c922621d
commit
e356cae969
@@ -601,6 +601,7 @@ void kthread_set_per_cpu(struct task_struct *k, int cpu)
|
|||||||
kthread->cpu = cpu;
|
kthread->cpu = cpu;
|
||||||
set_bit(KTHREAD_IS_PER_CPU, &kthread->flags);
|
set_bit(KTHREAD_IS_PER_CPU, &kthread->flags);
|
||||||
}
|
}
|
||||||
|
EXPORT_SYMBOL_GPL(kthread_set_per_cpu);
|
||||||
|
|
||||||
bool kthread_is_per_cpu(struct task_struct *p)
|
bool kthread_is_per_cpu(struct task_struct *p)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user