diff options
Diffstat (limited to 'kernel/suspend.c')
| -rw-r--r-- | kernel/suspend.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/kernel/suspend.c b/kernel/suspend.c index 843cbaf6d433..1033ee31df68 100644 --- a/kernel/suspend.c +++ b/kernel/suspend.c @@ -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; |
