Messages in this thread Patch in this message | | | Date | Fri, 28 Sep 2012 00:58:34 -0700 | From | tip-bot for Peter Zijlstra <> | Subject | [tip:sched/numa] sched: Introduce sched_feat_numa() |
| |
Commit-ID: 8a264705bc0437236a6948ad3b15219006e52fc8 Gitweb: http://git.kernel.org/tip/8a264705bc0437236a6948ad3b15219006e52fc8 Author: Peter Zijlstra <a.p.zijlstra@chello.nl> AuthorDate: Tue, 1 May 2012 23:47:08 +0200 Committer: Ingo Molnar <mingo@kernel.org> CommitDate: Thu, 27 Sep 2012 14:46:04 +0200
sched: Introduce sched_feat_numa()
Avoid a few #ifdef's later on.
Signed-off-by: Peter Zijlstra <a.p.zijlstra@chello.nl> Cc: Paul Turner <pjt@google.com> Cc: Lee Schermerhorn <Lee.Schermerhorn@hp.com> Cc: Christoph Lameter <cl@linux.com> Cc: Rik van Riel <riel@redhat.com> Cc: Andrew Morton <akpm@linux-foundation.org> Cc: Linus Torvalds <torvalds@linux-foundation.org> Link: http://lkml.kernel.org/n/tip-sxrRsaqz4cj1plnzyjbtWzbf@git.kernel.org Signed-off-by: Ingo Molnar <mingo@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 7a7db09..741272e 100644 --- a/kernel/sched/sched.h +++ b/kernel/sched/sched.h @@ -648,6 +648,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_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;
| |