Skip to content

Commit

Permalink
[PATCH] pm: clean up /sys/power/disk
Browse files Browse the repository at this point in the history
Clean code up a bit, and only show suspend to disk as available when
it is configured in.

Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
  • Loading branch information
Pavel Machek authored and Linus Torvalds committed Sep 5, 2005
1 parent 6161b2c commit 57c4ce3
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions kernel/power/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -143,11 +143,12 @@ static void suspend_finish(suspend_state_t state)



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
};


Expand Down

0 comments on commit 57c4ce3

Please sign in to comment.