提交 43117a08 编写于 作者: A Alexander Nyberg 提交者: Linus Torvalds

[PATCH] swsusp: SMP fix

Fix some smp_processor_id-in-preemptible warnings
Signed-off-by: NAndrew Morton <akpm@osdl.org>
Signed-off-by: NLinus Torvalds <torvalds@osdl.org>
上级 bf2049f9
......@@ -46,13 +46,13 @@ static cpumask_t oldmask;
void disable_nonboot_cpus(void)
{
printk("Freezing CPUs (at %d)", smp_processor_id());
oldmask = current->cpus_allowed;
set_cpus_allowed(current, cpumask_of_cpu(0));
printk("Freezing CPUs (at %d)", _smp_processor_id());
current->state = TASK_INTERRUPTIBLE;
schedule_timeout(HZ);
printk("...");
BUG_ON(smp_processor_id() != 0);
BUG_ON(_smp_processor_id() != 0);
/* FIXME: for this to work, all the CPUs must be running
* "idle" thread (or we deadlock). Is that guaranteed? */
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册