[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20070825190205.GB15888@elte.hu>
Date: Sat, 25 Aug 2007 21:02:05 +0200
From: Ingo Molnar <mingo@...e.hu>
To: Christian Hesse <mail@...thworm.de>
Cc: suspend2-devel@...ts.tuxonice.net,
Fabio Comolli <fabio.comolli@...il.com>,
linux-kernel@...r.kernel.org, Suspend2-users@...ts.suspend2.net,
suspend2-devel <suspend2-devel@...ts.suspend2.net>,
David Rodriguez <livuxman@...il.com>
Subject: Re: [Suspend2-devel] Problem with CFS V20 and Suspend2/tuxonice
* Christian Hesse <mail@...thworm.de> wrote:
> > Reproduced on a Intel Centrino based laptop with gentoo kamikaze7
> > sources (http://forums.gentoo.org/viewtopic-t-577970.html)
>
> Same problem here: Core Duo, Kernel 2.6.22.5, Suspend 2.2.10, CFS v20.2.
please try the patch below - does it fix the problem?
Ingo
Index: linux-cfs-2.6.22.5.q/kernel/sched.c
===================================================================
--- linux-cfs-2.6.22.5.q.orig/kernel/sched.c
+++ linux-cfs-2.6.22.5.q/kernel/sched.c
@@ -5043,6 +5043,8 @@ static int migration_thread(void *data)
struct migration_req *req;
struct list_head *head;
+ try_to_freeze();
+
spin_lock_irq(&rq->lock);
if (cpu_is_offline(cpu)) {
@@ -5399,6 +5401,7 @@ migration_call(struct notifier_block *nf
p = kthread_create(migration_thread, hcpu, "migration/%d", cpu);
if (IS_ERR(p))
return NOTIFY_BAD;
+ p->flags |= PF_NOFREEZE;
kthread_bind(p, cpu);
/* Must be high prio: stop_machine expects to yield to it. */
rq = task_rq_lock(p, &flags);
-
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