Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753806Ab3GQKu4 (ORCPT ); Wed, 17 Jul 2013 06:50:56 -0400 Received: from merlin.infradead.org ([205.233.59.134]:60492 "EHLO merlin.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752436Ab3GQKuz (ORCPT ); Wed, 17 Jul 2013 06:50:55 -0400 Date: Wed, 17 Jul 2013 12:50:30 +0200 From: Peter Zijlstra To: Mel Gorman Cc: Srikar Dronamraju , Ingo Molnar , Andrea Arcangeli , Johannes Weiner , Linux-MM , LKML Subject: Re: [PATCH 02/18] sched: Track NUMA hinting faults on per-node basis Message-ID: <20130717105030.GB17211@twins.programming.kicks-ass.net> References: <1373901620-2021-1-git-send-email-mgorman@suse.de> <1373901620-2021-3-git-send-email-mgorman@suse.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1373901620-2021-3-git-send-email-mgorman@suse.de> User-Agent: Mutt/1.5.21 (2012-12-30) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1194 Lines: 44 On Mon, Jul 15, 2013 at 04:20:04PM +0100, Mel Gorman wrote: > index cc03cfd..c5f773d 100644 > --- a/kernel/sched/sched.h > +++ b/kernel/sched/sched.h > @@ -503,6 +503,17 @@ DECLARE_PER_CPU(struct rq, runqueues); > #define cpu_curr(cpu) (cpu_rq(cpu)->curr) > #define raw_rq() (&__raw_get_cpu_var(runqueues)) > > +#ifdef CONFIG_NUMA_BALANCING > +static inline void task_numa_free(struct task_struct *p) > +{ > + kfree(p->numa_faults); > +} > +#else /* CONFIG_NUMA_BALANCING */ > +static inline void task_numa_free(struct task_struct *p) > +{ > +} > +#endif /* CONFIG_NUMA_BALANCING */ > + > #ifdef CONFIG_SMP > > #define rcu_dereference_check_sched_domain(p) \ I also need the below hunk to make it compile: --- a/kernel/sched/sched.h +++ b/kernel/sched/sched.h @@ -6,6 +6,7 @@ #include #include #include +#include #include "cpupri.h" #include "cpuacct.h" -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/