• Ingo Molnar's avatar
    sched: Fix cpupri build on !CONFIG_SMP · bcf08df3
    Ingo Molnar authored
    This build bug:
    
     In file included from kernel/sched.c:1765:
     kernel/sched_rt.c: In function ‘has_pushable_tasks’:
     kernel/sched_rt.c:1069: error: ‘struct rt_rq’ has no member named ‘pushable_tasks’
     kernel/sched_rt.c: In function ‘pick_next_task_rt’:
     kernel/sched_rt.c:1084: error: ‘struct rq’ has no member named ‘post_schedule’
    
    Triggers because both pushable_tasks and post_schedule are
    SMP-only fields.
    
    Move pushable_tasks() to the SMP section and #ifdef the post_schedule use.
    
    Cc: Gregory Haskins <ghaskins@novell.com>
    Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
    LKML-Reference: <20090729150422.17691.55590.stgit@dev.haskins.net>
    Signed-off-by: default avatarIngo Molnar <mingo@elte.hu>
    bcf08df3
sched_rt.c 40.4 KB