/* this syscall returns the maximum rt_priority that can be used by a given scheduling class.  */
SYSCALL_DEFINE1(sched_get_priority_max, int, policy)
/* this syscall returns the maximum rt_priority that can be used by a given scheduling class.  */
SYSCALL_DEFINE1(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:
	case SCHED_BATCH:
	case SCHED_IDLE:
		ret = 0;
		break;
	}
	return ret;
}