summaryrefslogtreecommitdiffstats
path: root/include/linux/sched.h
diff options
context:
space:
mode:
authorIngo Molnar <mingo@elte.hu>2008-07-18 14:01:39 +0200
committerIngo Molnar <mingo@elte.hu>2008-07-18 14:02:46 +0200
commit1b427c153a08fdbc092c2bdbf845b92fda58d857 (patch)
treeb3803cd09abf687021e53676a3948415fc1a96a6 /include/linux/sched.h
parent39b0fad7121eace85770e7a4c6dc35dfd2879768 (diff)
downloadop-kernel-dev-1b427c153a08fdbc092c2bdbf845b92fda58d857.zip
op-kernel-dev-1b427c153a08fdbc092c2bdbf845b92fda58d857.tar.gz
sched: fix build error, provide partition_sched_domains() unconditionally
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>
Diffstat (limited to 'include/linux/sched.h')
-rw-r--r--include/linux/sched.h11
1 files changed, 10 insertions, 1 deletions
diff --git a/include/linux/sched.h b/include/linux/sched.h
index 1941d8b..26da921 100644
--- a/include/linux/sched.h
+++ b/include/linux/sched.h
@@ -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);
-#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
OpenPOWER on IntegriCloud