[PATCH] swpsuspend: Have suspend to disk use factors of sys_reboot
authorEric W. Biederman <ebiederm@xmission.com>
Tue, 26 Jul 2005 18:01:17 +0000 (12:01 -0600)
committerLinus Torvalds <torvalds@g5.osdl.org>
Tue, 26 Jul 2005 21:35:44 +0000 (14:35 -0700)
commitfdde86ac50357b6a811e3574e47d189e81a21444
treeb5e8d3d295da10b84ba6538359e20c5435b3085a
parent804ebf46d51653e736108074473d9493398f2df9
[PATCH] swpsuspend: Have suspend to disk use factors of sys_reboot

The suspend to disk code was a poor copy of the code in
sys_reboot now that we have kernel_power_off, kernel_restart
and kernel_halt use them instead of poorly duplicating them inline.

Signed-off-by: Eric W. Biederman <ebiederm@xmission.com>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
kernel/power/disk.c