event"
This reverts commit 393d94d98b19089ec172566e23557997931b137e.
I submitted 393d94d98b1 to -mm and sched-devel, and then quickly realized
it was flawed. However, the patch was already "in flight" and made it
to Linus' tree and is in .25-rc5. So this patch reverts the
original/flawed fix, and the patch that follows has the updated version.
Signed-off-by: Gregory Haskins <ghaskins@novell.com>
Cc: Gautham R Shenoy <ego@in.ibm.com>
Cc: "Siddha, Suresh B" <suresh.b.siddha@intel.com>
Cc: Ingo Molnar <mingo@elte.hu>
Cc: "Rafael J. Wysocki" <rjw@sisk.pl>
Cc: Andrew Morton <akpm@linux-foundation.org>
---
kernel/sched.c | 18 +++++++++++-------
1 files changed, 11 insertions(+), 7 deletions(-)
diff --git a/kernel/sched.c b/kernel/sched.c
index b02e4fc..52b9867 100644
--- a/kernel/sched.c
+++ b/kernel/sched.c
@@ -5813,13 +5813,6 @@ migration_call(struct notifier_block *nfb, unsigned long action, void *hcpu)
/* Must be high prio: stop_machine expects to yield to it. */
rq = task_rq_lock(p, &flags);
__setscheduler(rq, p, SCHED_FIFO, MAX_RT_PRIO-1);
-
- /* Update our root-domain */
- if (rq->rd) {
- BUG_ON(!cpu_isset(cpu, rq->rd->span));
- cpu_set(cpu, rq->rd->online);
- }
-
task_rq_unlock(rq, &flags);
cpu_rq(cpu)->migration_thread = p;
break;
@@ -5828,6 +5821,15 @@ migration_call(struct notifier_block *nfb, unsigned long action, void *hcpu)
case CPU_ONLINE_FROZEN:
/* Strictly unnecessary, as first user will wake it. */
wake_up_process(cpu_rq(cpu)->migration_thread);
+
+ /* Update our root-domain */
+ rq = cpu_rq(cpu);
+ spin_lock_irqsave(&rq->lock, flags);
+ if (rq->rd) {
+ BUG_ON(!cpu_isset(cpu, rq->rd->span));
+ cpu_set(cpu, rq->rd->online);
+ }
+ spin_unlock_irqrestore(&rq->lock, flags);
break;
#ifdef CONFIG_HOTPLUG_CPU
@@ -6103,6 +6105,8 @@ static void rq_attach_root(struct rq *rq, struct root_domain *rd)
rq->rd = rd;
cpu_set(rq->cpu, rd->span);
+ if (cpu_isset(rq->cpu, cpu_online_map))
+ cpu_set(rq->cpu, rd->online);
for (class = sched_class_highest; class; class = class->next) {
if (class->join_domain)
--
| Peter Zijlstra | [PATCH 6/6] sched: disabled rt-bandwidth by default |
| Alan Cox | Re: RFC: outb 0x80 in inb_p, outb_p harmful on some modern AMD64 with MCP51 laptops |
| Vegard Nossum | [RFC][PATCH] bitfields API |
| Pallipadi, Venkatesh | RE: 2.6.21-rc6-mm1 |
git: | |
| Jan Holesovsky | [PATCH] RFC: git lazy clone proof-of-concept |
| Junio C Hamano | Re: [PATCH resend] make "git push" update origin and mirrors, "git push --mirror" ... |
| Nicolas Pitre | Re: [PATCH] diff-delta: produce optimal pack data |
| Sam Vilain | [PATCH] git-mergetool: add support for ediff |
| Michael | QEMU /dev/tun issue with tun device number > 3 (more than 4 guests) |
| GVG GVG | ssh_exchange_identification: Connection closed by remote host |
| Predrag Punosevac | Re: OpenBSD project goals |
| Nick Guenther | Re: how to clear dmesg outpout |
| Stephen Pierce | SLS |
| C Wayne Huling | Re: Can males come from... |
| Les Andrzejewski | X386/WD90C31/SUMSUNG SYNC MASTER 4 |
| David Willmore | Re: Intel, the Pentium and Linux |
