.. | .. |
---|
45 | 45 | |
---|
46 | 46 | raw_spin_lock_init(&rt_b->rt_runtime_lock); |
---|
47 | 47 | |
---|
48 | | - hrtimer_init(&rt_b->rt_period_timer, |
---|
49 | | - CLOCK_MONOTONIC, HRTIMER_MODE_REL); |
---|
| 48 | + hrtimer_init(&rt_b->rt_period_timer, CLOCK_MONOTONIC, |
---|
| 49 | + HRTIMER_MODE_REL_HARD); |
---|
50 | 50 | rt_b->rt_period_timer.function = sched_rt_period_timer; |
---|
51 | 51 | } |
---|
52 | 52 | |
---|
.. | .. |
---|
1680 | 1680 | static int pick_rt_task(struct rq *rq, struct task_struct *p, int cpu) |
---|
1681 | 1681 | { |
---|
1682 | 1682 | if (!task_running(rq, p) && |
---|
1683 | | - cpumask_test_cpu(cpu, &p->cpus_allowed)) |
---|
| 1683 | + cpumask_test_cpu(cpu, p->cpus_ptr)) |
---|
1684 | 1684 | return 1; |
---|
1685 | 1685 | |
---|
1686 | 1686 | return 0; |
---|
.. | .. |
---|
1833 | 1833 | * Also make sure that it wasn't scheduled on its rq. |
---|
1834 | 1834 | */ |
---|
1835 | 1835 | if (unlikely(task_rq(task) != rq || |
---|
1836 | | - !cpumask_test_cpu(lowest_rq->cpu, &task->cpus_allowed) || |
---|
| 1836 | + !cpumask_test_cpu(lowest_rq->cpu, task->cpus_ptr) || |
---|
1837 | 1837 | task_running(rq, task) || |
---|
1838 | 1838 | !rt_task(task) || |
---|
1839 | 1839 | !task_on_rq_queued(task))) { |
---|