mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [patch] Cleanup /sys/power/disk
@ 2005-08-26  9:41 Pavel Machek
  0 siblings, 0 replies; only message in thread
From: Pavel Machek @ 2005-08-26  9:41 UTC (permalink / raw)
  To: Andrew Morton, kernel list

Clean code up a bit, and only show suspend to disk as available when
it is configured in.

--- linux-mm/kernel/power/main.c	2005-08-24 20:21:55.000000000 +0200
+++ linux/kernel/power/main.c	2005-07-13 23:58:57.000000000 +0200
@@ -143,11 +143,12 @@
 
 
 
-static char * pm_states[] = {
+static char * pm_states[PM_SUSPEND_MAX] = {
 	[PM_SUSPEND_STANDBY]	= "standby",
 	[PM_SUSPEND_MEM]	= "mem",
+#ifdef CONFIG_SOFTWARE_SUSPEND
 	[PM_SUSPEND_DISK]	= "disk",
-	NULL,
+#endif
 };
 
 

-- 
if you have sharp zaurus hardware you don't need... you know my address

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2005-08-26  9:41 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-08-26  9:41 [patch] Cleanup /sys/power/disk Pavel Machek

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®