ANDROID: trusty: Call kthread_set_per_cpu
Call the new kthread_set_per_cpu api to make sure the kthreads we
created with kthread_create_on_cpu stay on the required cpu.
Bug: 266595872
Bug: 274202992
Change-Id: I741191329bf53f78d2613164a8390a1a14515b71
Signed-off-by: Arve Hjønnevåg <arve@android.com>
diff --git a/drivers/trusty/trusty.c b/drivers/trusty/trusty.c
index 5c753bf..c1d26af 100644
--- a/drivers/trusty/trusty.c
+++ b/drivers/trusty/trusty.c
@@ -1107,6 +1107,7 @@
__func__, cpu, tw->nop_thread);
goto err_thread_create;
}
+ kthread_set_per_cpu(tw->nop_thread, cpu);
kthread_park(tw->nop_thread);
}