Commit f597d1de authored by Pavel Machek's avatar Pavel Machek Committed by Steve French

[PATCH] suspend SMP-kernel with one CPU

This allows suspend to work on UP machines, even if the kernel
is compiled for SMP.
parent bd824b9f
......@@ -1203,12 +1203,12 @@ static int read_suspend_image(const char * specialfile, int noresume)
void software_resume(void)
{
#ifdef CONFIG_SMP
printk(KERN_WARNING "Software Suspend has a malfunctioning SMP support. Disabled :(\n");
#else
if (num_online_cpus() > 1) {
printk(KERN_WARNING "Software Suspend has malfunctioning SMP support. Disabled :(\n");
return;
}
/* We enable the possibility of machine suspend */
software_suspend_enabled = 1;
#endif
if (!resume_status)
return;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment