On Wed, 2011-01-26 at 17:21 -0500, Rik van Riel wrote:
+static struct sched_entity *__pick_second_entity(struct cfs_rq *cfs_rq)
+{
+ struct rb_node *left = cfs_rq->rb_leftmost;
+ struct rb_node *second;
+
+ if (!left)
+ return NULL;
+
+ second = rb_next(left);
+
+ if (!second)
+ second = left;
+
+ return rb_entry(second, struct sched_entity, run_node);
+}
I would still prefer:
sed -i 's/__pick_next_entity/__pick_first_entity/g' kernel/sched*.[ch]
You seem to have lost the hunk removing sysctl_sched_compat_yield from
kernel/sysctl.c :-)