On Wed, Jul 03, 2013 at 03:21:40PM +0100, Mel Gorman wrote: > --- > kernel/sched/fair.c | 45 ++++++++++++++++++++++++++++++++++++++++++--- > kernel/sched/sched.h | 4 ++++ > 2 files changed, 46 insertions(+), 3 deletions(-) > > diff --git a/kernel/sched/fair.c b/kernel/sched/fair.c > index 3c796b0..9ffdff3 100644 > --- a/kernel/sched/fair.c > +++ b/kernel/sched/fair.c > @@ -777,6 +777,18 @@ update_stats_curr_start(struct cfs_rq *cfs_rq, struct > sched_entity *se) > * Scheduling class queueing methods: > */ > > +static void account_numa_enqueue(struct rq *rq, struct task_struct *p) > +{ > + rq->nr_preferred_running += > + (cpu_to_node(task_cpu(p)) == p->numa_preferred_nid); > +} > + > +static void account_numa_dequeue(struct rq *rq, struct task_struct *p) > +{ > + rq->nr_preferred_running -= > + (cpu_to_node(task_cpu(p)) == p->numa_preferred_nid); > +}
Ah doing this requires you dequeue before changing ->numa_preferred_nid. I don't remember seeing that change in this series. -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/