Commit-ID: c46c05a7cfb4ce34d1b7cfbf77a58d98c7be6210 Gitweb: http://git.kernel.org/tip/c46c05a7cfb4ce34d1b7cfbf77a58d98c7be6210 Author: Peter Zijlstra <a.p.zijls...@chello.nl> AuthorDate: Tue, 1 May 2012 23:47:08 +0200 Committer: Ingo Molnar <mi...@kernel.org> CommitDate: Tue, 13 Nov 2012 14:11:48 +0100
sched, numa, mm: Introduce sched_feat_numa() Avoid a few #ifdef's later on. Signed-off-by: Peter Zijlstra <a.p.zijls...@chello.nl> Cc: Paul Turner <p...@google.com> Cc: Lee Schermerhorn <lee.schermerh...@hp.com> Cc: Christoph Lameter <c...@linux.com> Cc: Rik van Riel <r...@redhat.com> Cc: Mel Gorman <mgor...@suse.de> Cc: Andrew Morton <a...@linux-foundation.org> Cc: Linus Torvalds <torva...@linux-foundation.org> Link: http://lkml.kernel.org/n/tip-sxrrsaqz4cj1plnzyjbtw...@git.kernel.org Signed-off-by: Ingo Molnar <mi...@kernel.org> --- kernel/sched/sched.h | 6 ++++++ 1 files changed, 6 insertions(+), 0 deletions(-) diff --git a/kernel/sched/sched.h b/kernel/sched/sched.h index 5eca173..6ac4056 100644 --- a/kernel/sched/sched.h +++ b/kernel/sched/sched.h @@ -663,6 +663,12 @@ extern struct static_key sched_feat_keys[__SCHED_FEAT_NR]; #define sched_feat(x) (sysctl_sched_features & (1UL << __SCHED_FEAT_##x)) #endif /* SCHED_DEBUG && HAVE_JUMP_LABEL */ +#ifdef CONFIG_NUMA_BALANCING +#define sched_feat_numa(x) sched_feat(x) +#else +#define sched_feat_numa(x) (0) +#endif + static inline u64 global_rt_period(void) { return (u64)sysctl_sched_rt_period * NSEC_PER_USEC; -- 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/