Make more nice syscalls public
PATCH 7/28 Make more nice syscalls public
Make more nice syscalls public
Make priority min/max public by moving it to scheduler.c
Signed-off-by Con Kolivas <[email protected]>
kernel/sched.c +0 -45
@@ -3272,51 +3272,6 @@ long __sched io_schedule_timeout(long ti }/** -* sys_sched_get_priority_max - return maximum RT priority. -* @policy: scheduling class. -* -* this syscall returns the maximum rt_priority that can be used -* by a given scheduling class. -*/ -asmlinkage long sys_sched_get_priority_max (int policy) -{ -int ret = -EINVAL ; - -switch (policy) { -case SCHED_FIFO : -case SCHED_RR : - ret =MAX_USER_RT_PRIO -1 ; -break ; -case SCHED_NORMAL : - ret =0 ; -break ; - } -return ret; -} - -/** -* sys_sched_get_priority_min - return minimum RT priority. -* @policy: scheduling class. -* -* this syscall returns the minimum rt_priority that can be used -* by a given scheduling class. -*/ -asmlinkage long sys_sched_get_priority_min (int policy) -{ -int ret = -EINVAL ; - -switch (policy) { -case SCHED_FIFO : -case SCHED_RR : - ret =1 ; -break ; -case SCHED_NORMAL : - ret =0 ; - } -return ret; -} - -/** * sys_sched_rr_get_interval - return the default timeslice of a process. * @pid: pid of the process. * @interval: userspace pointer to the timeslice value.
kernel/scheduler.c +44 -0
50 lines not on this page · raw message