diff options
Diffstat (limited to 'kernel/sched_rt.c')
-rw-r--r-- | kernel/sched_rt.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/kernel/sched_rt.c b/kernel/sched_rt.c index d3d1cccb3d7b..50735bb96149 100644 --- a/kernel/sched_rt.c +++ b/kernel/sched_rt.c | |||
@@ -934,6 +934,13 @@ static int find_lowest_rq(struct task_struct *task) | |||
934 | return -1; /* No targets found */ | 934 | return -1; /* No targets found */ |
935 | 935 | ||
936 | /* | 936 | /* |
937 | * Only consider CPUs that are usable for migration. | ||
938 | * I guess we might want to change cpupri_find() to ignore those | ||
939 | * in the first place. | ||
940 | */ | ||
941 | cpus_and(*lowest_mask, *lowest_mask, cpu_active_map); | ||
942 | |||
943 | /* | ||
937 | * At this point we have built a mask of cpus representing the | 944 | * At this point we have built a mask of cpus representing the |
938 | * lowest priority tasks in the system. Now we want to elect | 945 | * lowest priority tasks in the system. Now we want to elect |
939 | * the best one based on our affinity and topology. | 946 | * the best one based on our affinity and topology. |