sched: wrap sched_group and sched_domain cpumask accesses.
[deliverable/linux.git] / include / linux / sched.h
index 4ce5c603c51a86c65edbf71939c99038cc9f6a5b..2b95aa9f779b57cdbff5ae1350761617810a96ba 100644 (file)
@@ -786,6 +786,11 @@ struct sched_group {
        u32 reciprocal_cpu_power;
 };
 
+static inline struct cpumask *sched_group_cpus(struct sched_group *sg)
+{
+       return &sg->cpumask;
+}
+
 enum sched_domain_level {
        SD_LV_NONE = 0,
        SD_LV_SIBLING,
@@ -866,6 +871,11 @@ struct sched_domain {
 #endif
 };
 
+static inline struct cpumask *sched_domain_span(struct sched_domain *sd)
+{
+       return &sd->span;
+}
+
 extern void partition_sched_domains(int ndoms_new, cpumask_t *doms_new,
                                    struct sched_domain_attr *dattr_new);
 extern int arch_reinit_sched_domains(void);
This page took 0.025192 seconds and 5 git commands to generate.