diff options
author | Paul Gortmaker <paul.gortmaker@windriver.com> | 2016-09-01 09:40:36 -0400 |
---|---|---|
committer | Paul Gortmaker <paul.gortmaker@windriver.com> | 2016-09-01 09:40:36 -0400 |
commit | 37b31fe3706a00c13052794d9fa63fb625db441c (patch) | |
tree | d7e6cad6ac83136bdf598f77d495ce8d28ce4e58 | |
parent | 847cd7da20af10970662a29279c170b495c49302 (diff) | |
download | 4.8-rt-patches-37b31fe3706a00c13052794d9fa63fb625db441c.tar.gz |
sched: use new flags struct
-rw-r--r-- | patches/cpu-rt-rework-cpu-down.patch | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/patches/cpu-rt-rework-cpu-down.patch b/patches/cpu-rt-rework-cpu-down.patch index a928a4574d10ba..01edb356f5ad36 100644 --- a/patches/cpu-rt-rework-cpu-down.patch +++ b/patches/cpu-rt-rework-cpu-down.patch @@ -484,7 +484,7 @@ Signed-off-by: Thomas Gleixner <tglx@linutronix.de> + struct migration_arg arg; + struct cpumask *cpumask; + struct cpumask *mask; -+ unsigned long flags; ++ struct rq_flags rf; + unsigned int dest_cpu; + struct rq *rq; + @@ -496,7 +496,7 @@ Signed-off-by: Thomas Gleixner <tglx@linutronix.de> + return 0; + + mutex_lock(&sched_down_mutex); -+ rq = task_rq_lock(p, &flags); ++ rq = task_rq_lock(p, &rf); + + cpumask = this_cpu_ptr(&sched_cpumasks); + mask = &p->cpus_allowed; @@ -505,7 +505,7 @@ Signed-off-by: Thomas Gleixner <tglx@linutronix.de> + + if (!cpumask_weight(cpumask)) { + /* It's only on this CPU? */ -+ task_rq_unlock(rq, p, &flags); ++ task_rq_unlock(rq, p, &rf); + mutex_unlock(&sched_down_mutex); + return 0; + } @@ -515,7 +515,7 @@ Signed-off-by: Thomas Gleixner <tglx@linutronix.de> + arg.task = p; + arg.dest_cpu = dest_cpu; + -+ task_rq_unlock(rq, p, &flags); ++ task_rq_unlock(rq, p, &rf); + + stop_one_cpu(cpu_of(rq), migration_cpu_stop, &arg); + tlb_migrate_finish(p->mm); |