[PATCH 21/31] sched, numa, mm: Introduce sched_feat_numa()
From: Peter Zijlstra <hidden>
Date: 2012-10-25 13:11:06
Also in:
lkml
Avoid a few #ifdef's later on. Signed-off-by: Peter Zijlstra <redacted> Cc: Paul Turner <redacted> Cc: Lee Schermerhorn <redacted> Cc: Christoph Lameter <redacted> Cc: Rik van Riel <redacted> Cc: Andrew Morton <akpm@linux-foundation.org> Cc: Linus Torvalds <torvalds@linux-foundation.org> Signed-off-by: Ingo Molnar <mingo@kernel.org> --- kernel/sched/sched.h | 6 ++++++ 1 file changed, 6 insertions(+) Index: tip/kernel/sched/sched.h ===================================================================
--- tip.orig/kernel/sched/sched.h
+++ tip/kernel/sched/sched.h@@ -648,6 +648,12 @@ extern struct static_key sched_feat_keys #define sched_feat(x) (sysctl_sched_features & (1UL << __SCHED_FEAT_##x)) #endif /* SCHED_DEBUG && HAVE_JUMP_LABEL */ +#ifdef CONFIG_SCHED_NUMA +#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, send a message with 'unsubscribe linux-mm' in the body to majordomo@kvack.org. For more info on Linux MM, see: http://www.linux-mm.org/ . Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>