ANDROID: vendor_hooks: add hook in create_worker()

This hook is used to apply specific scheduling policies to worker->task

Bug: 360039558
Bug: 408116496

Change-Id: I4fb79b23bced1c58a6fa5f4d0c19850f11d56e0f
Signed-off-by: Yang Yang <yang.yang@vivo.com>
(cherry picked from commit 2041959e88de73c2487def20a89c60a7f8177938)
Signed-off-by: ying zuxin <11154159@vivo.com>
This commit is contained in:
Yang Yang
2024-08-14 18:37:22 +08:00
committed by 11154159 Vivo
parent 40096e655a
commit 25d43121e3
3 changed files with 6 additions and 0 deletions
+1
View File
@@ -2812,6 +2812,7 @@ static struct worker *create_worker(struct worker_pool *pool)
}
set_user_nice(worker->task, pool->attrs->nice);
trace_android_rvh_create_worker(worker->task, pool->attrs);
kthread_bind_mask(worker->task, pool_allowed_cpus(pool));
}