Skip to contentSkip to conversation

CPUSETS: remove SMP dependency

PATCH In review Magnus Damm 2 participants 2 messages Oct 3, 2005 Scheduler

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 CPUSETS: remove SMP dependency

Remove the SMP dependency from CPUSETS.

---

 include/linux/sched.h |    4 ++++
 init/Kconfig          |    1 -
 2 files changed, 4 insertions(+), 1 deletion(-)
include/linux/sched.h +4 -0
@@ -590,6 +590,10 @@ struct sched_domain {
 
 extern void partition_sched_domains(cpumask_t *partition1,
 				    cpumask_t *partition2);
+#else /* CONFIG_SMP */
+
+static inline void partition_sched_domains(cpumask_t *partition1,
+					   cpumask_t *partition2) {}
 #endif /* CONFIG_SMP */
 
 
init/Kconfig +0 -1
@@ -245,7 +245,6 @@ config IKCONFIG_PROC
 
 config CPUSETS
 	bool "Cpuset support"
-	depends on SMP
 	help
 	  This option will let you create and manage CPUSETs which
 	  allow dynamically partitioning a system into sets of CPUs and