* Max Krasnyansky <maxk@xxxxxxxxxxxx> wrote:Hmm, I did it on top of 2.6.26 final which has Dmitry's patch. It must have
Ingo Molnar wrote:* Linus Torvalds <torvalds@xxxxxxxxxxxxxxxxxxxx> wrote:I just sent you guys a patch. Please take a look. I've probably missed something but it should close (I think). Also we'd probably at least want the bits that streamline the domain reinitialization because it helps with cpusets (ie uses same exact path for all cases).
On Mon, 14 Jul 2008, Max Krasnyansky wrote:yeah - it's very high on our TODO list :-) Peter, Dmitry and me are looking into it.Did you guys an updated patch ? Dmitry pointed out several things that LinusI didn't update it, and right now I'm just merging too much (and discussing the merges) to have time.
missed in his original version. I guess I can go through the thread and
reconstruct that but if you have a patch I can try let me know.
The patch really needs to have some scheduler person look at the use fo cpu_active_map - I was kind of hoping that Ingo would.
I didnt touch most of -tip in the past few days to get a rock solid QA track record for all items we have.
thanks Max. Since upstream already has Dmitry's it conflicted with your patch - i fixed the interactions up, see it below. (completely untested)
It's not ready for inclusion yet though - these new
#ifdefs are quite ugly:
+#if !defined(CONFIG_CPUSETS)
+ partition_sched_domains(0, NULL, NULL);
+#else
+ rebuild_sched_domains();
+#endif
we should just have a single method for refreshing sched domains hierarchy, and in the !CONFIG_CPUSETS case that should simply fall back to partition_sched_domains().
We can do that by making rebuild_sched_domains() the primary method that is called - and in the !CPUSETS case it's an inline that calls partition_sched_domains().
also, small nits:Will do.
use #ifdef CONFIG_CPUSETS instead of "#if !defined(CONFIG_CPUSETS)".
and while at it:Yeah, I stared at that comment for a second and decided to leave it.
+#if !defined(CONFIG_CPUSETS)
/* XXX: Theoretical race here - CPU may be hotplugged now */
hotcpu_notifier(update_sched_domains, 0);
+#endif
that race should be closed now, hm?