From 2e85c6c0fa11244360bac46da0e708d7600849b9 Mon Sep 17 00:00:00 2001 From: lijianzhong Date: Mon, 31 May 2021 17:39:46 +0800 Subject: [PATCH] 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 Change-Id: I7919a893ab64bb441ab43cbb0b16825ed76d802d (cherry picked from commit 5a7d01ed73e4fc812fda1d7288086dc73a283405) --- kernel/cgroup/cpuset.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kernel/cgroup/cpuset.c b/kernel/cgroup/cpuset.c index 2728c634e984..b7f5ad665149 100644 --- a/kernel/cgroup/cpuset.c +++ b/kernel/cgroup/cpuset.c @@ -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