Messages in this thread Patch in this message | | | Date | Fri, 26 Aug 2005 11:41:15 +0200 | From | Pavel Machek <> | Subject | [patch] Cleanup /sys/power/disk |
| |
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 majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
| |