pthread_setcancelstate.3: ATTRIBUTES: Note functions that are thread-safe

The functions pthread_setcancelstate() and
pthread_setcanceltype() are thread safe.

Signed-off-by: Peng Haitao <penght@cn.fujitsu.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
futex.2: srcfix: Update FIXME

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
Changes.old: Tweaks to 3.66 changelog

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
sched_getattr.2: New link to new sched_setattr.

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
sched_setparam.2: SEE ALSO: add sched_setattr(2)

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
sched_setscheduler.2: wfix + tfix

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
sched_setattr.2: New page describing sched_setattr(2) and sched_getattr(2)

Cowritten-by: Peter Zijlstra <peterz@infradead.org>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
sched.7: Rework summary text describing sched_setattr(2) and sched_getattr(2)

Note that these APIs are a superset of sched_setscheduler(2)
and sched_getscheduler(2).

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
sched.7: Remove mention of sched_setscheduler() when talking about sched_priority

There are nowadays multiple ways to set sched_priority (and
in fact there always were, since we also had sched_setparam(2)).

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
sched.7: Minor fix to page cross reference

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
sched.7: Mention sched_setattr(2) in list of APIs that can change policies

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
sched.7: Don't mention sched_setscheduler(2) in discussions of setting policies

In a couple of places, sched_setscheduler(2) is mentioned as the
way of setting policies. But now there is sched_setattr(2) as
well, rewrite the text in a more generic way.

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
sched.7: sched_setattr(2) can also be used to set 'nice' value

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
sched.7: Document sched_rt_period_us and sched_rt_runtime_us /proc files

And rework and relocate the text on dealing with runaway
real-time processes.

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
sched.7: Document SCHED_DEADLINE

Raw text from Peter Zijlstra

Cowritten-by: Juri Lelli <juri.lelli@gmail.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
sched.7: ffix and other minor fixes

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
sched.7: Tweak ASCII art

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
sched.7: Add lots of details on SCHED_DEADLINE

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
proc.5: Add /proc/sys/kernel/{sched_rt_period_us,sched_rt_runtime_us}

Reference sched(7) for an explanation of these two files

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
fork.2: ERRORS: SCHED_DEADLINE tasks can fail with EAGAIN

SCHED_DEADLINE tasks can fail with EAGAIN unless the
reset-on-fork flag is set.

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>