diff options
Diffstat (limited to 'include')
| -rw-r--r-- | include/linux/sched.h | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/include/linux/sched.h b/include/linux/sched.h index dfc21fb76bf1..78ba664474f3 100644 --- a/include/linux/sched.h +++ b/include/linux/sched.h | |||
| @@ -1009,9 +1009,13 @@ static inline struct cpumask *sched_domain_span(struct sched_domain *sd) | |||
| 1009 | return to_cpumask(sd->span); | 1009 | return to_cpumask(sd->span); |
| 1010 | } | 1010 | } |
| 1011 | 1011 | ||
| 1012 | extern void partition_sched_domains(int ndoms_new, struct cpumask *doms_new, | 1012 | extern void partition_sched_domains(int ndoms_new, cpumask_var_t doms_new[], |
| 1013 | struct sched_domain_attr *dattr_new); | 1013 | struct sched_domain_attr *dattr_new); |
| 1014 | 1014 | ||
| 1015 | /* Allocate an array of sched domains, for partition_sched_domains(). */ | ||
| 1016 | cpumask_var_t *alloc_sched_domains(unsigned int ndoms); | ||
| 1017 | void free_sched_domains(cpumask_var_t doms[], unsigned int ndoms); | ||
| 1018 | |||
| 1015 | /* Test a flag in parent sched domain */ | 1019 | /* Test a flag in parent sched domain */ |
| 1016 | static inline int test_sd_parent(struct sched_domain *sd, int flag) | 1020 | static inline int test_sd_parent(struct sched_domain *sd, int flag) |
| 1017 | { | 1021 | { |
| @@ -1029,7 +1033,7 @@ unsigned long default_scale_smt_power(struct sched_domain *sd, int cpu); | |||
| 1029 | struct sched_domain_attr; | 1033 | struct sched_domain_attr; |
| 1030 | 1034 | ||
| 1031 | static inline void | 1035 | static inline void |
| 1032 | partition_sched_domains(int ndoms_new, struct cpumask *doms_new, | 1036 | partition_sched_domains(int ndoms_new, cpumask_var_t doms_new[], |
| 1033 | struct sched_domain_attr *dattr_new) | 1037 | struct sched_domain_attr *dattr_new) |
| 1034 | { | 1038 | { |
| 1035 | } | 1039 | } |
