* Fix platform mode on swsusp
@ 2004-08-15 16:40 Pavel Machek
0 siblings, 0 replies; only message in thread
From: Pavel Machek @ 2004-08-15 16:40 UTC (permalink / raw)
To: kernel list, Patrick Mochel
Hi!
When machine supports both S4 and S4bios, S4bios mode is prefered and
it is not possible to enter S4 by swsusp. echo platform > disk then
does nothing. This makes S4 take precedence over S4bios if only one of
them would be available as the result.
[As a side note, I believe that 'echo "disk" > state' is wrong
interface for S4bios, as it requires completely different setup from
the user.]
Please apply,
Pavel
--- clean-mm/drivers/acpi/sleep/main.c 2004-07-28 23:39:47.000000000 +0200
+++ linux-mm/drivers/acpi/sleep/main.c 2004-08-15 18:39:01.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!
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2004-08-15 16:41 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-08-15 16:40 Fix platform mode on swsusp Pavel Machek
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox