[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20080718120312.GA9926@elte.hu>
Date: Fri, 18 Jul 2008 14:03:12 +0200
From: Ingo Molnar <mingo@...e.hu>
To: Max Krasnyansky <maxk@...lcomm.com>
Cc: linux-kernel@...r.kernel.org, torvalds@...ux-foundation.org,
dmitry.adamushko@...il.com, a.p.zijlstra@...llo.nl,
rostedt@...dmis.org, vegard.nossum@...il.com
Subject: Re: [PATCH] cpu hotplug: Make cpu_active_map synchronization
dependency clear
* Ingo Molnar <mingo@...e.hu> wrote:
> * Max Krasnyansky <maxk@...lcomm.com> wrote:
>
> > This goes on top of the cpu_active_map (take 2) patch.
>
> i've applied it to sched/devel. [...]
build fix below for UP.
Ingo
---------------------------------------------->
commit 1b427c153a08fdbc092c2bdbf845b92fda58d857
Author: Ingo Molnar <mingo@...e.hu>
Date: Fri Jul 18 14:01:39 2008 +0200
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@...e.hu>
---
include/linux/sched.h | 11 ++++++++++-
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
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists