.. | .. |
---|
287 | 287 | |
---|
288 | 288 | dl_se->dl_non_contending = 1; |
---|
289 | 289 | get_task_struct(p); |
---|
290 | | - hrtimer_start(timer, ns_to_ktime(zerolag_time), HRTIMER_MODE_REL); |
---|
| 290 | + hrtimer_start(timer, ns_to_ktime(zerolag_time), HRTIMER_MODE_REL_HARD); |
---|
291 | 291 | } |
---|
292 | 292 | |
---|
293 | 293 | static void task_contending(struct sched_dl_entity *dl_se, int flags) |
---|
.. | .. |
---|
539 | 539 | * If we cannot preempt any rq, fall back to pick any |
---|
540 | 540 | * online CPU: |
---|
541 | 541 | */ |
---|
542 | | - cpu = cpumask_any_and(cpu_active_mask, &p->cpus_allowed); |
---|
| 542 | + cpu = cpumask_any_and(cpu_active_mask, p->cpus_ptr); |
---|
543 | 543 | if (cpu >= nr_cpu_ids) { |
---|
544 | 544 | /* |
---|
545 | 545 | * Failed to find any suitable CPU. |
---|
.. | .. |
---|
1086 | 1086 | { |
---|
1087 | 1087 | struct hrtimer *timer = &dl_se->dl_timer; |
---|
1088 | 1088 | |
---|
1089 | | - hrtimer_init(timer, CLOCK_MONOTONIC, HRTIMER_MODE_REL); |
---|
| 1089 | + hrtimer_init(timer, CLOCK_MONOTONIC, HRTIMER_MODE_REL_HARD); |
---|
1090 | 1090 | timer->function = dl_task_timer; |
---|
1091 | 1091 | } |
---|
1092 | 1092 | |
---|
.. | .. |
---|
1325 | 1325 | { |
---|
1326 | 1326 | struct hrtimer *timer = &dl_se->inactive_timer; |
---|
1327 | 1327 | |
---|
1328 | | - hrtimer_init(timer, CLOCK_MONOTONIC, HRTIMER_MODE_REL); |
---|
| 1328 | + hrtimer_init(timer, CLOCK_MONOTONIC, HRTIMER_MODE_REL_HARD); |
---|
1329 | 1329 | timer->function = inactive_task_timer; |
---|
1330 | 1330 | } |
---|
1331 | 1331 | |
---|
.. | .. |
---|
1858 | 1858 | static int pick_dl_task(struct rq *rq, struct task_struct *p, int cpu) |
---|
1859 | 1859 | { |
---|
1860 | 1860 | if (!task_running(rq, p) && |
---|
1861 | | - cpumask_test_cpu(cpu, &p->cpus_allowed)) |
---|
| 1861 | + cpumask_test_cpu(cpu, p->cpus_ptr)) |
---|
1862 | 1862 | return 1; |
---|
1863 | 1863 | return 0; |
---|
1864 | 1864 | } |
---|
.. | .. |
---|
2008 | 2008 | /* Retry if something changed. */ |
---|
2009 | 2009 | if (double_lock_balance(rq, later_rq)) { |
---|
2010 | 2010 | if (unlikely(task_rq(task) != rq || |
---|
2011 | | - !cpumask_test_cpu(later_rq->cpu, &task->cpus_allowed) || |
---|
| 2011 | + !cpumask_test_cpu(later_rq->cpu, task->cpus_ptr) || |
---|
2012 | 2012 | task_running(rq, task) || |
---|
2013 | 2013 | !dl_task(task) || |
---|
2014 | 2014 | !task_on_rq_queued(task))) { |
---|