ANDROID: export cpuset_cpus_allowed()for GKI purpose.

Exporting the symbol cpuset_cpus_allowed() so that we can adjust a
certain type of application's CPU affinity in vendor hooks according
to our tuning policy.
Related commit: aosp/2565450

Bug: 189725786
Bug: 283222331

Signed-off-by: lijianzhong <lijianzhong@xiaomi.com>
Change-Id: I7919a893ab64bb441ab43cbb0b16825ed76d802d
(cherry picked from commit 5a7d01ed73e4fc812fda1d7288086dc73a283405)
This commit is contained in:
lijianzhong
2021-05-31 17:39:46 +08:00
committed by Qiankun Wang
parent 1174e45a7d
commit 7d9c8f70d7

View File

@@ -3405,7 +3405,7 @@ void cpuset_cpus_allowed(struct task_struct *tsk, struct cpumask *pmask)
guarantee_online_cpus(tsk, pmask);
spin_unlock_irqrestore(&callback_lock, flags);
}
EXPORT_SYMBOL_GPL(cpuset_cpus_allowed);
/**
* cpuset_cpus_allowed_fallback - final fallback before complete catastrophe.
* @tsk: pointer to task_struct with which the scheduler is struggling