swsusp: do not disable platform swsusp because S4bios is available

From: Pavel Machek
Date: Tue Aug 17 2004 - 06:09:25 EST


Hi!

Currently, when both S4 and S4bios are available, swsusp always
chooses S4bios and makes S4 unavailable. Bad idea as S4bios needs
completely different setup.... Please apply,
Pavel

--- clean-mm/drivers/acpi/sleep/main.c 2004-08-17 12:21:43.000000000 +0200
+++ linux-mm/drivers/acpi/sleep/main.c 2004-08-17 12:22:45.000000000 +0200
@@ -217,7 +217,8 @@
sleep_states[i] = 1;
printk(" S4bios");
acpi_pm_ops.pm_disk_mode = PM_DISK_FIRMWARE;
- } else if (sleep_states[i])
+ }
+ if (sleep_states[i])
acpi_pm_ops.pm_disk_mode = PM_DISK_PLATFORM;
}
}

--
People were complaining that M$ turns users into beta-testers...
...jr ghea gurz vagb qrirybcref, naq gurl frrz gb yvxr vg gung jnl!
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/