summaryrefslogtreecommitdiff
path: root/Kernel/Syscalls/sched.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Kernel/Syscalls/sched.cpp')
-rw-r--r--Kernel/Syscalls/sched.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/Kernel/Syscalls/sched.cpp b/Kernel/Syscalls/sched.cpp
index 4f791d1665..7bbc04ca35 100644
--- a/Kernel/Syscalls/sched.cpp
+++ b/Kernel/Syscalls/sched.cpp
@@ -8,14 +8,14 @@
namespace Kernel {
-KResultOr<int> Process::sys$yield()
+KResultOr<FlatPtr> Process::sys$yield()
{
REQUIRE_PROMISE(stdio);
Thread::current()->yield_without_holding_big_lock();
return 0;
}
-KResultOr<int> Process::sys$donate(pid_t tid)
+KResultOr<FlatPtr> Process::sys$donate(pid_t tid)
{
REQUIRE_PROMISE(stdio);
if (tid < 0)
@@ -29,7 +29,7 @@ KResultOr<int> Process::sys$donate(pid_t tid)
return 0;
}
-KResultOr<int> Process::sys$sched_setparam(int pid, Userspace<const struct sched_param*> user_param)
+KResultOr<FlatPtr> Process::sys$sched_setparam(int pid, Userspace<const struct sched_param*> user_param)
{
REQUIRE_PROMISE(proc);
struct sched_param desired_param;
@@ -54,7 +54,7 @@ KResultOr<int> Process::sys$sched_setparam(int pid, Userspace<const struct sched
return 0;
}
-KResultOr<int> Process::sys$sched_getparam(pid_t pid, Userspace<struct sched_param*> user_param)
+KResultOr<FlatPtr> Process::sys$sched_getparam(pid_t pid, Userspace<struct sched_param*> user_param)
{
REQUIRE_PROMISE(proc);
int priority;