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) ...@@ -1203,12 +1203,12 @@ static int read_suspend_image(const char * specialfile, int noresume)
void software_resume(void) void software_resume(void)
{ {
#ifdef CONFIG_SMP if (num_online_cpus() > 1) {
printk(KERN_WARNING "Software Suspend has a malfunctioning SMP support. Disabled :(\n"); printk(KERN_WARNING "Software Suspend has malfunctioning SMP support. Disabled :(\n");
#else return;
}
/* We enable the possibility of machine suspend */ /* We enable the possibility of machine suspend */
software_suspend_enabled = 1; software_suspend_enabled = 1;
#endif
if (!resume_status) if (!resume_status)
return; 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