OpenCores
URL https://opencores.org/ocsvn/openrisc_me/openrisc_me/trunk

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [gnu-src/] [newlib-1.18.0/] [newlib/] [libc/] [sys/] [linux/] [sched.c] - Blame information for rev 207

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 207 jeremybenn
/* libc/sys/linux/sched.c - Process scheduling functions */
2
 
3
/* Copyright 2002, Red Hat Inc. */
4
 
5
#include <time.h>
6
#include <sched.h>
7
#include <machine/syscall.h>
8
 
9
_syscall1(int,sched_get_priority_max,int,policy);
10
_syscall1(int,sched_get_priority_min,int,policy);
11
_syscall2(int,sched_rr_get_interval,pid_t,pid,struct timespec *,interval);
12
_syscall0(int,sched_yield);
13
 
14
weak_alias(__libc_sched_get_priority_max,__sched_get_priority_max);
15
weak_alias(__libc_sched_get_priority_min,__sched_get_priority_min);
16
 
17
#if !defined(_ELIX_LEVEL) || _ELIX_LEVEL >= 3
18
_syscall2(int,sched_getparam,pid_t,pid,struct sched_param *,sched);
19
_syscall1(int,sched_getscheduler,pid_t,pid);
20
_syscall2(int,sched_setparam,pid_t,pid,const struct sched_param *,sched);
21
_syscall3(int,sched_setscheduler,pid_t,pid,int,policy,const struct sched_param *,sched);
22
weak_alias(__libc_sched_getparam,__sched_getparam);
23
weak_alias(__libc_sched_getscheduler,__sched_getscheduler);
24
weak_alias(__libc_sched_setscheduler,__sched_setscheduler);
25
#endif /* !_ELIX_LEVEL || _ELIX_LEVEL >= 3 */
26
 

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.