mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 13:38:11 +00:00
Kernel: Also add a process boosting mechanism
Let's also have set_process_boost() for giving all threads in a process the same boost.
This commit is contained in:
parent
0dea0fd06f
commit
a69734bf2e
6 changed files with 33 additions and 2 deletions
|
@ -34,6 +34,11 @@ int set_thread_boost(int tid, int amount)
|
|||
__RETURN_WITH_ERRNO(rc, rc, -1);
|
||||
}
|
||||
|
||||
int set_process_boost(int tid, int amount)
|
||||
{
|
||||
int rc = syscall(SC_set_process_boost, tid, amount);
|
||||
__RETURN_WITH_ERRNO(rc, rc, -1);
|
||||
}
|
||||
|
||||
int futex(int32_t* userspace_address, int futex_op, int32_t value, const struct timespec* timeout)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue