public
/
FUZIX.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
12bc5fa
)
syscall_other: add support for suspend/resume
author
Alan Cox
<alan@linux.intel.com>
Thu, 20 Sep 2018 00:53:50 +0000
(
01:53
+0100)
committer
Alan Cox
<alan@linux.intel.com>
Thu, 20 Sep 2018 00:53:50 +0000
(
01:53
+0100)
Kernel/syscall_other.c
patch
|
blob
|
history
diff --git
a/Kernel/syscall_other.c
b/Kernel/syscall_other.c
index
ead1e2c
..
e735779
100644
(file)
--- a/
Kernel/syscall_other.c
+++ b/
Kernel/syscall_other.c
@@
-541,7
+541,14
@@
arg_t _uadmin(void)
}
if (cmd == A_REBOOT)
platform_reboot();
-
+#ifdef CONFIG_PLATFORM_SUSPEND
+ if (cmd == A_SUSPEND) {
+ udata.u_error = platform_suspend();
+ if (udata.u_error)
+ return -1;
+ return 0;
+ }
+#endif
/* We don't do SWAPCTL yet */
udata.u_error = EINVAL;
return -1;