Prepare for SMP suspend
Subsystems (2)
Hi!
Its very bad idea to freeze migration threads, as it crashes machine upon next call to "schedule()". In refrigerator, I had one "wake_up_process()" too many. This fixes it. Please apply,
Signed-off-by Pavel Machek <[email protected]>
Pavel
kernel/sched.c +1 -0
@@ -3558,6 +3558,7 @@ 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);
kernel/power/process.c +0 -1
@@ -109,7 +109,6 @@wake_up_process (p); }else printk (KERN_INFO " Strange, %s not stopped\n" , p->comm ); -wake_up_process (p); }while_each_thread (g, p);read_unlock (&tasklist_lock);
Signature · 2 lines
People were complaining that M$ turns users into beta-testers... ...jr ghea gurz vagb qrirybcref, naq gurl frrz gb yvxr vg gung jnl!