summaryrefslogtreecommitdiff
path: root/include/linux/sched.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/linux/sched.h')
-rw-r--r--include/linux/sched.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/include/linux/sched.h b/include/linux/sched.h
index 020b79d6c486..5a9168b01db8 100644
--- a/include/linux/sched.h
+++ b/include/linux/sched.h
@@ -897,12 +897,20 @@ static inline struct cpumask *sched_group_cpus(struct sched_group *sg)
enum sched_domain_level {
SD_LV_NONE = 0,
+#ifdef CONFIG_SCHED_SMT
SD_LV_SIBLING,
+#endif
+#ifdef CONFIG_SCHED_MC
SD_LV_MC,
+#endif
+#ifdef CONFIG_SCHED_BOOK
SD_LV_BOOK,
+#endif
SD_LV_CPU,
+#ifdef CONFIG_NUMA
SD_LV_NODE,
SD_LV_ALLNODES,
+#endif
SD_LV_MAX
};