[patch] Cleanup /sys/power/disk

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[Index of Archives]     [Kernel Newbies]     [Netfilter]     [Bugtraq]     [Photo]     [Gimp]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Video 4 Linux]     [Linux for the blind]
  Powered by Linux