]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commitdiff
sched: move test_sd_parent() to an SMP section of sched.h
authorIngo Molnar <mingo@elte.hu>
Thu, 18 Dec 2008 20:30:23 +0000 (21:30 +0100)
committerIngo Molnar <mingo@elte.hu>
Fri, 19 Dec 2008 08:21:56 +0000 (09:21 +0100)
Impact: build fix

Signed-off-by: Ingo Molnar <mingo@elte.hu>
include/linux/sched.h

index 5a933d9254736347164a9b735c02a1f1935bad3f..e5f928a079e835ae801e9d3b08d1aa40a0efce15 100644 (file)
@@ -920,6 +920,15 @@ extern void partition_sched_domains(int ndoms_new, struct cpumask *doms_new,
                                    struct sched_domain_attr *dattr_new);
 extern int arch_reinit_sched_domains(void);
 
+/* Test a flag in parent sched domain */
+static inline int test_sd_parent(struct sched_domain *sd, int flag)
+{
+       if (sd->parent && (sd->parent->flags & flag))
+               return 1;
+
+       return 0;
+}
+
 #else /* CONFIG_SMP */
 
 struct sched_domain_attr;
@@ -1431,15 +1440,6 @@ struct task_struct {
 #endif
 };
 
-/* Test a flag in parent sched domain */
-static inline int test_sd_parent(struct sched_domain *sd, int flag)
-{
-       if (sd->parent && (sd->parent->flags & flag))
-               return 1;
-
-       return 0;
-}
-
 /*
  * Priority of a process goes from 0..MAX_PRIO-1, valid RT
  * priority is 0..MAX_RT_PRIO-1, and SCHED_NORMAL/SCHED_BATCH