From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from psmtp.com (na3sys010amx106.postini.com [74.125.245.106]) by kanga.kvack.org (Postfix) with SMTP id 959AB6B0088 for ; Thu, 25 Oct 2012 09:10:35 -0400 (EDT) Message-Id: <20121025124834.091119747@chello.nl> Date: Thu, 25 Oct 2012 14:16:38 +0200 From: Peter Zijlstra Subject: [PATCH 21/31] sched, numa, mm: Introduce sched_feat_numa() References: <20121025121617.617683848@chello.nl> Content-Disposition: inline; filename=0021-sched-numa-mm-Introduce-sched_feat_numa.patch Sender: owner-linux-mm@kvack.org List-ID: To: Rik van Riel , Andrea Arcangeli , Mel Gorman , Johannes Weiner , Thomas Gleixner , Linus Torvalds , Andrew Morton Cc: linux-kernel@vger.kernel.org, linux-mm@kvack.org, Peter Zijlstra , Paul Turner , Lee Schermerhorn , Christoph Lameter , Ingo Molnar Avoid a few #ifdef's later on. Signed-off-by: Peter Zijlstra Cc: Paul Turner Cc: Lee Schermerhorn Cc: Christoph Lameter Cc: Rik van Riel Cc: Andrew Morton Cc: Linus Torvalds Signed-off-by: Ingo Molnar --- 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: email@kvack.org