Fixed error when SMP is disabled in kernel config file
authorAnton Eisenbraun <anton.e@mailbox.tu-berlin.de>
Thu, 10 Oct 2013 15:53:02 +0000 (17:53 +0200)
committerAnton Eisenbraun <anton.e@mailbox.tu-berlin.de>
Thu, 10 Oct 2013 15:53:02 +0000 (17:53 +0200)
kernel/sched.new/core.c

index d852444..c4eb6f3 100644 (file)
@@ -1245,6 +1245,7 @@ ttwu_do_activate(struct rq *rq, struct task_struct *p, int wake_flags)
        ttwu_do_wakeup(rq, p, wake_flags);
 }
 
        ttwu_do_wakeup(rq, p, wake_flags);
 }
 
+#ifdef CONFIG_SMP
 /*
  * kernel/sched/core.c:1394
  */
 /*
  * kernel/sched/core.c:1394
  */
@@ -1253,6 +1254,7 @@ static void ttwu_queue_remote(struct task_struct *p, int cpu)
        if (llist_add(&p->wake_entry, &cpu_rq(cpu)->wake_list))
                smp_send_reschedule(cpu);
 }
        if (llist_add(&p->wake_entry, &cpu_rq(cpu)->wake_list))
                smp_send_reschedule(cpu);
 }
+#endif
 
 /*
  * kernel/sched/core.c:1406
 
 /*
  * kernel/sched/core.c:1406