]> nv-tegra.nvidia Code Review - linux-2.6.git/commitdiff
sched: fix build error, provide partition_sched_domains() unconditionally
authorIngo Molnar <mingo@elte.hu>
Fri, 18 Jul 2008 12:01:39 +0000 (14:01 +0200)
committerIngo Molnar <mingo@elte.hu>
Fri, 18 Jul 2008 12:02:46 +0000 (14:02 +0200)
provide an empty partition_sched_domains() definition for the UP case:

 include/linux/cpuset.h: In function â€˜rebuild_sched_domains':
 include/linux/cpuset.h:163: error: implicit declaration of function â€˜partition_sched_domains'

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

index 1941d8b5cf11cb9731342c5519ac58436e192eab..26da921530fe73eb1602315ce57b9f53794b4c9d 100644 (file)
@@ -824,7 +824,16 @@ 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);
 
                                    struct sched_domain_attr *dattr_new);
 extern int arch_reinit_sched_domains(void);
 
-#endif /* CONFIG_SMP */
+#else /* CONFIG_SMP */
+
+struct sched_domain_attr;
+
+static inline void
+partition_sched_domains(int ndoms_new, cpumask_t *doms_new,
+                       struct sched_domain_attr *dattr_new)
+{
+}
+#endif /* !CONFIG_SMP */
 
 struct io_context;                     /* See blkdev.h */
 #define NGROUPS_SMALL          32
 
 struct io_context;                     /* See blkdev.h */
 #define NGROUPS_SMALL          32