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 <pkondeti@codeaurora.org>
Bug: 148872640
Bug: 149816871
Change-Id: I6c2ec1d5e3d994e176926d94b9e0cc92418020cc
Signed-off-by: Will McVicker <willmcvicker@google.com>
(cherry picked from commit b4fee475f8)
[only cherry-picked the ABI difference]
This commit is contained in:
Pavankumar Kondeti 2019-02-28 10:40:39 +05:30 committed by Will McVicker
parent 66042ce5c2
commit 37d63f2459
2 changed files with 2 additions and 0 deletions

View File

@ -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;

View File

@ -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 = {