|
@@ -1872,12 +1872,6 @@ static void set_load_weight(struct task_struct *p)
|
|
p->se.load.inv_weight = prio_to_wmult[p->static_prio - MAX_RT_PRIO];
|
|
p->se.load.inv_weight = prio_to_wmult[p->static_prio - MAX_RT_PRIO];
|
|
}
|
|
}
|
|
|
|
|
|
-static void update_avg(u64 *avg, u64 sample)
|
|
|
|
-{
|
|
|
|
- s64 diff = sample - *avg;
|
|
|
|
- *avg += diff >> 3;
|
|
|
|
-}
|
|
|
|
-
|
|
|
|
static void enqueue_task(struct rq *rq, struct task_struct *p, int flags)
|
|
static void enqueue_task(struct rq *rq, struct task_struct *p, int flags)
|
|
{
|
|
{
|
|
update_rq_clock(rq);
|
|
update_rq_clock(rq);
|
|
@@ -2332,6 +2326,12 @@ int select_task_rq(struct rq *rq, struct task_struct *p, int sd_flags, int wake_
|
|
|
|
|
|
return cpu;
|
|
return cpu;
|
|
}
|
|
}
|
|
|
|
+
|
|
|
|
+static void update_avg(u64 *avg, u64 sample)
|
|
|
|
+{
|
|
|
|
+ s64 diff = sample - *avg;
|
|
|
|
+ *avg += diff >> 3;
|
|
|
|
+}
|
|
#endif
|
|
#endif
|
|
|
|
|
|
/***
|
|
/***
|