diff options
Diffstat (limited to 'kernel/sched.c')
-rw-r--r-- | kernel/sched.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/kernel/sched.c b/kernel/sched.c index dd1a1466c1e6..2b703f1fac3a 100644 --- a/kernel/sched.c +++ b/kernel/sched.c | |||
@@ -466,7 +466,9 @@ struct rt_rq { | |||
466 | #if defined CONFIG_SMP || defined CONFIG_RT_GROUP_SCHED | 466 | #if defined CONFIG_SMP || defined CONFIG_RT_GROUP_SCHED |
467 | struct { | 467 | struct { |
468 | int curr; /* highest queued rt task prio */ | 468 | int curr; /* highest queued rt task prio */ |
469 | #ifdef CONFIG_SMP | ||
469 | int next; /* next highest */ | 470 | int next; /* next highest */ |
471 | #endif | ||
470 | } highest_prio; | 472 | } highest_prio; |
471 | #endif | 473 | #endif |
472 | #ifdef CONFIG_SMP | 474 | #ifdef CONFIG_SMP |
@@ -8267,8 +8269,10 @@ static void init_rt_rq(struct rt_rq *rt_rq, struct rq *rq) | |||
8267 | 8269 | ||
8268 | #if defined CONFIG_SMP || defined CONFIG_RT_GROUP_SCHED | 8270 | #if defined CONFIG_SMP || defined CONFIG_RT_GROUP_SCHED |
8269 | rt_rq->highest_prio.curr = MAX_RT_PRIO; | 8271 | rt_rq->highest_prio.curr = MAX_RT_PRIO; |
8272 | #ifdef CONFIG_SMP | ||
8270 | rt_rq->highest_prio.next = MAX_RT_PRIO; | 8273 | rt_rq->highest_prio.next = MAX_RT_PRIO; |
8271 | #endif | 8274 | #endif |
8275 | #endif | ||
8272 | #ifdef CONFIG_SMP | 8276 | #ifdef CONFIG_SMP |
8273 | rt_rq->rt_nr_migratory = 0; | 8277 | rt_rq->rt_nr_migratory = 0; |
8274 | rt_rq->overloaded = 0; | 8278 | rt_rq->overloaded = 0; |