|
@@ -199,8 +199,11 @@ static void dequeue_rt_entity(struct sched_rt_entity *rt_se);
|
|
|
|
|
|
static void sched_rt_rq_enqueue(struct rt_rq *rt_rq)
|
|
static void sched_rt_rq_enqueue(struct rt_rq *rt_rq)
|
|
{
|
|
{
|
|
|
|
+ int this_cpu = smp_processor_id();
|
|
struct task_struct *curr = rq_of_rt_rq(rt_rq)->curr;
|
|
struct task_struct *curr = rq_of_rt_rq(rt_rq)->curr;
|
|
- struct sched_rt_entity *rt_se = rt_rq->rt_se;
|
|
|
|
|
|
+ struct sched_rt_entity *rt_se;
|
|
|
|
+
|
|
|
|
+ rt_se = rt_rq->tg->rt_se[this_cpu];
|
|
|
|
|
|
if (rt_rq->rt_nr_running) {
|
|
if (rt_rq->rt_nr_running) {
|
|
if (rt_se && !on_rt_rq(rt_se))
|
|
if (rt_se && !on_rt_rq(rt_se))
|
|
@@ -212,7 +215,10 @@ static void sched_rt_rq_enqueue(struct rt_rq *rt_rq)
|
|
|
|
|
|
static void sched_rt_rq_dequeue(struct rt_rq *rt_rq)
|
|
static void sched_rt_rq_dequeue(struct rt_rq *rt_rq)
|
|
{
|
|
{
|
|
- struct sched_rt_entity *rt_se = rt_rq->rt_se;
|
|
|
|
|
|
+ int this_cpu = smp_processor_id();
|
|
|
|
+ struct sched_rt_entity *rt_se;
|
|
|
|
+
|
|
|
|
+ rt_se = rt_rq->tg->rt_se[this_cpu];
|
|
|
|
|
|
if (rt_se && on_rt_rq(rt_se))
|
|
if (rt_se && on_rt_rq(rt_se))
|
|
dequeue_rt_entity(rt_se);
|
|
dequeue_rt_entity(rt_se);
|