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/2548175

Bug: 189725786

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 Todd Kjos
parent 8979a0b16a
commit 2e85c6c0fa

View File

@@ -3798,7 +3798,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