summaryrefslogtreecommitdiffstats
path: root/schedutils/chrt.1
diff options
context:
space:
mode:
authorAurelien Jarno2009-04-22 09:18:28 +0200
committerKarel Zak2009-05-07 11:28:08 +0200
commitb64279dab84373f060d589bdd519dbfa255adc58 (patch)
treee7db453544e78c702683d5195484f4ff26938283 /schedutils/chrt.1
parentcal: Highlight today even when month or year specified (diff)
downloadkernel-qcow2-util-linux-b64279dab84373f060d589bdd519dbfa255adc58.tar.gz
kernel-qcow2-util-linux-b64279dab84373f060d589bdd519dbfa255adc58.tar.xz
kernel-qcow2-util-linux-b64279dab84373f060d589bdd519dbfa255adc58.zip
chrt: don't assume SCHED_BATCH and SCHED_IDLE exist
SCHED_FIFO, SCHED_OTHER, SCHED_RR are part of POSIX 1003.1b Process Scheduling, so it is correct to assume they always exists. SCHED_BATCH and SCHED_IDLE are Linux specific, we should not assume they exists. Defining SCHED_BATCH and SCHED_IDLE to random values (ie the ones found on Linux systems) is not an option as they may *collide* with the one of other systems. For example on GNU/kFreeBSD we have: #define SCHED_RR 3 and on Linux we have: #define SCHED_BATCH 3 [kzak@redhat.com: - add "Linux specific" notes to chrt.1 - add a note about BATCH and PR conflict to this commit message] Signed-off-by: Aurelien Jarno <aurelien@aurel32.net> Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'schedutils/chrt.1')
-rw-r--r--schedutils/chrt.12
1 files changed, 2 insertions, 0 deletions
diff --git a/schedutils/chrt.1 b/schedutils/chrt.1
index 83b3dbb0c..06c58b479 100644
--- a/schedutils/chrt.1
+++ b/schedutils/chrt.1
@@ -63,6 +63,7 @@ operate on an existing PID and do not launch a new task
.B -b, --batch
set scheduling policy to
.BR SCHED_BATCH
+(Linux specific)
.TP
.B -f, --fifo
set scheduling policy to
@@ -71,6 +72,7 @@ set scheduling policy to
.B -i, --idle
set schedulng policy to
.BR SCHED_IDLE
+(Linux specific)
.TP
.B -m, --max
show minimum and maximum valid priorities, then exit