LibC: Add sched_get_priority_{min,max}
I don't support priority scheduling so these are just no-ops
This commit is contained in:
parent
0f2c02fb04
commit
85f200bd86
|
@ -2,6 +2,18 @@
|
||||||
#include <sys/syscall.h>
|
#include <sys/syscall.h>
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
|
|
||||||
|
int sched_get_priority_max(int policy)
|
||||||
|
{
|
||||||
|
(void)policy;
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
int sched_get_priority_min(int policy)
|
||||||
|
{
|
||||||
|
(void)policy;
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
int sched_yield(void)
|
int sched_yield(void)
|
||||||
{
|
{
|
||||||
return syscall(SYS_YIELD);
|
return syscall(SYS_YIELD);
|
||||||
|
|
Loading…
Reference in New Issue