]> git.neil.brown.name Git - history.git/commit
[PATCH] Allow software_suspend to fail
authorAndrew Morton <akpm@osdl.org>
Wed, 4 Feb 2004 02:41:41 +0000 (18:41 -0800)
committerLinus Torvalds <torvalds@home.osdl.org>
Wed, 4 Feb 2004 02:41:41 +0000 (18:41 -0800)
commit0c2d119562483938d5635e20bdc548715fc20e12
treeace2c7983e072115858fb911bb3d997dc40dc87e
parent9db89cf785e61599a142c6db2f12cda75f35eb9d
[PATCH] Allow software_suspend to fail

From: Pavel Machek <pavel@ucw.cz>

software_suspend() can fail for quite a lot of reasons (for example not
enough swapspace).  However current interface returned void, so you could
not propagate error back to userland.  This fixes it.  Plus
__read_suspend_image() is only done during init time, so we might as well
mark it __init.
drivers/macintosh/via-pmu.c
include/linux/suspend.h
kernel/power/swsusp.c
kernel/sys.c