.\"
.\" Worth looking at: http://rt.wiki.kernel.org/index.php
.\"
-.TH SCHED_SETSCHEDULER 2 2010-10-04 "Linux" "Linux Programmer's Manual"
+.TH SCHED_SETSCHEDULER 2 2011-09-19 "Linux" "Linux Programmer's Manual"
.SH NAME
sched_setscheduler, sched_getscheduler \-
set and get scheduling policy/parameters
matches the real or effective user ID of the target process.
.IP *
Special rules apply for the
-.BR SCHED_IDLE :
+.BR SCHED_IDLE .
+In Linux kernels before 2.6.39,
an unprivileged process operating under this policy cannot
change its policy, regardless of the value of its
.BR RLIMIT_RTPRIO
resource limit.
+In Linux kernels since 2.6.39,
+.\" commit c02aa73b1d18e43cfd79c2f193b225e84ca497c8
+an unprivileged process can switch to either the
+.BR SCHED_BATCH
+or the
+.BR SCHED_NORMAL
+policy so long as its nice value falls within the range permitted by its
+.BR RLIMIT_NICE
+resource limit (see
+.BR getrlimit (2)).
.PP
Privileged
.RB ( CAP_SYS_NICE )