From 37d63f245943dcad196317e71a344d56e7136891 Mon Sep 17 00:00:00 2001 From: Pavankumar Kondeti Date: Thu, 28 Feb 2019 10:40:39 +0530 Subject: [PATCH] ANDROID: GKI: cpuset: add field for task affinity for cpusets This updates the struct task_struct ABI to include a field for vendors to support task affinity for cpusets. Signed-off-by: Pavankumar Kondeti Bug: 148872640 Bug: 149816871 Change-Id: I6c2ec1d5e3d994e176926d94b9e0cc92418020cc Signed-off-by: Will McVicker (cherry picked from commit b4fee475f8d7a3327bc63e665ffbfdd63ab4bcc7) [only cherry-picked the ABI difference] --- include/linux/sched.h | 1 + init/init_task.c | 1 + 2 files changed, 2 insertions(+) diff --git a/include/linux/sched.h b/include/linux/sched.h index fed5e0d411eb..668903ea4561 100644 --- a/include/linux/sched.h +++ b/include/linux/sched.h @@ -710,6 +710,7 @@ struct task_struct { unsigned int policy; int nr_cpus_allowed; cpumask_t cpus_allowed; + cpumask_t cpus_requested; #ifdef CONFIG_PREEMPT_RCU int rcu_read_lock_nesting; diff --git a/init/init_task.c b/init/init_task.c index 7b57e01b3bdd..53e6e27ea8b5 100644 --- a/init/init_task.c +++ b/init/init_task.c @@ -74,6 +74,7 @@ struct task_struct init_task .policy = SCHED_NORMAL, .cpus_allowed = CPU_MASK_ALL, .nr_cpus_allowed= NR_CPUS, + .cpus_requested = CPU_MASK_ALL, .mm = NULL, .active_mm = &init_mm, .restart_block = {