PM: Reduce code duplication between main.c and user.c
commit6c961dfb7c903cfd1cd71b506863894038fd704f
authorRafael J. Wysocki <rjw@sisk.pl>
Thu, 19 Jul 2007 08:47:38 +0000 (19 01:47 -0700)
committerLinus Torvalds <torvalds@woody.linux-foundation.org>
Thu, 19 Jul 2007 17:04:42 +0000 (19 10:04 -0700)
tree32890d6ef2cf735243d804778a5b62951aed4ef5
parentccd4b65aef4be2278543fde5b999e55a4d694fd8
PM: Reduce code duplication between main.c and user.c

The SNAPSHOT_S2RAM ioctl code is outdated and it should not duplicate the
suspend code in kernel/power/main.c.  Fix that.

Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl>
Acked-by: Pavel Machek <pavel@ucw.cz>
Cc: Nigel Cunningham <nigel@nigel.suspend2.net>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
kernel/power/main.c
kernel/power/power.h
kernel/power/user.c