aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/sched.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/linux/sched.h')
-rw-r--r--include/linux/sched.h23
1 files changed, 3 insertions, 20 deletions
diff --git a/include/linux/sched.h b/include/linux/sched.h
index 09d9e02f2b61..e43e5b0ab0b5 100644
--- a/include/linux/sched.h
+++ b/include/linux/sched.h
@@ -892,25 +892,6 @@ static inline struct cpumask *sched_group_cpus(struct sched_group *sg)
892 return to_cpumask(sg->cpumask); 892 return to_cpumask(sg->cpumask);
893} 893}
894 894
895enum sched_domain_level {
896 SD_LV_NONE = 0,
897#ifdef CONFIG_SCHED_SMT
898 SD_LV_SIBLING,
899#endif
900#ifdef CONFIG_SCHED_MC
901 SD_LV_MC,
902#endif
903#ifdef CONFIG_SCHED_BOOK
904 SD_LV_BOOK,
905#endif
906 SD_LV_CPU,
907#ifdef CONFIG_NUMA
908 SD_LV_NODE,
909 SD_LV_ALLNODES,
910#endif
911 SD_LV_MAX
912};
913
914struct sched_domain_attr { 895struct sched_domain_attr {
915 int relax_domain_level; 896 int relax_domain_level;
916}; 897};
@@ -919,6 +900,8 @@ struct sched_domain_attr {
919 .relax_domain_level = -1, \ 900 .relax_domain_level = -1, \
920} 901}
921 902
903extern int sched_domain_level_max;
904
922struct sched_domain { 905struct sched_domain {
923 /* These fields must be setup */ 906 /* These fields must be setup */
924 struct sched_domain *parent; /* top domain must be null terminated */ 907 struct sched_domain *parent; /* top domain must be null terminated */
@@ -936,7 +919,7 @@ struct sched_domain {
936 unsigned int forkexec_idx; 919 unsigned int forkexec_idx;
937 unsigned int smt_gain; 920 unsigned int smt_gain;
938 int flags; /* See SD_* */ 921 int flags; /* See SD_* */
939 enum sched_domain_level level; 922 int level;
940 923
941 /* Runtime fields. */ 924 /* Runtime fields. */
942 unsigned long last_balance; /* init to jiffies. units in jiffies */ 925 unsigned long last_balance; /* init to jiffies. units in jiffies */