|
@@ -1048,8 +1048,12 @@ struct sched_domain;
|
|
|
#define WF_FORK 0x02 /* child wakeup after fork */
|
|
|
|
|
|
#define ENQUEUE_WAKEUP 1
|
|
|
-#define ENQUEUE_WAKING 2
|
|
|
-#define ENQUEUE_HEAD 4
|
|
|
+#define ENQUEUE_HEAD 2
|
|
|
+#ifdef CONFIG_SMP
|
|
|
+#define ENQUEUE_WAKING 4 /* sched_class::task_waking was called */
|
|
|
+#else
|
|
|
+#define ENQUEUE_WAKING 0
|
|
|
+#endif
|
|
|
|
|
|
#define DEQUEUE_SLEEP 1
|
|
|
|
|
@@ -1071,7 +1075,7 @@ struct sched_class {
|
|
|
|
|
|
void (*pre_schedule) (struct rq *this_rq, struct task_struct *task);
|
|
|
void (*post_schedule) (struct rq *this_rq);
|
|
|
- void (*task_waking) (struct rq *this_rq, struct task_struct *task);
|
|
|
+ void (*task_waking) (struct task_struct *task);
|
|
|
void (*task_woken) (struct rq *this_rq, struct task_struct *task);
|
|
|
|
|
|
void (*set_cpus_allowed)(struct task_struct *p,
|