sched: Make separate sched*.c translation units
[deliverable/linux.git] / include / linux / sched.h
index 68daf4f27e2c337102258d71450eabc5a14178dd..8db17b7622ecf620f757bda7af41c2875e51b1b3 100644 (file)
@@ -925,6 +925,15 @@ static inline struct cpumask *sched_group_cpus(struct sched_group *sg)
        return to_cpumask(sg->cpumask);
 }
 
+/**
+ * group_first_cpu - Returns the first cpu in the cpumask of a sched_group.
+ * @group: The group whose first cpu is to be returned.
+ */
+static inline unsigned int group_first_cpu(struct sched_group *group)
+{
+       return cpumask_first(sched_group_cpus(group));
+}
+
 struct sched_domain_attr {
        int relax_domain_level;
 };
This page took 0.0251 seconds and 5 git commands to generate.