Skip to content
  • Peter Zijlstra's avatar
    sched: Fix select_task_rq() vs hotplug issues · 5da9a0fb
    Peter Zijlstra authored
    
    
    Since select_task_rq() is now responsible for guaranteeing
    ->cpus_allowed and cpu_active_mask, we need to verify this.
    
    select_task_rq_rt() can blindly return
    smp_processor_id()/task_cpu() without checking the valid masks,
    select_task_rq_fair() can do the same in the rare case that all
    SD_flags are disabled.
    
    Signed-off-by: default avatarPeter Zijlstra <a.p.zijlstra@chello.nl>
    Cc: Mike Galbraith <efault@gmx.de>
    LKML-Reference: <20091216170517.961475466@chello.nl>
    Signed-off-by: default avatarIngo Molnar <mingo@elte.hu>
    5da9a0fb