summaryrefslogtreecommitdiffstats
path: root/schedutils
diff options
context:
space:
mode:
authorRuediger Meier2016-02-24 12:29:49 +0100
committerKarel Zak2016-02-24 12:46:20 +0100
commita03eac52942f46c43da1621a2bd956aec441bbe1 (patch)
tree2f95ce4bf4a82459b1c30f15348e8cdaeb46c5d7 /schedutils
parentchrt: fix case SCHED_RR (diff)
downloadkernel-qcow2-util-linux-a03eac52942f46c43da1621a2bd956aec441bbe1.tar.gz
kernel-qcow2-util-linux-a03eac52942f46c43da1621a2bd956aec441bbe1.tar.xz
kernel-qcow2-util-linux-a03eac52942f46c43da1621a2bd956aec441bbe1.zip
chrt: restore removed ifdef SCHED_RESET_ON_FORK
They got lost in acde3a05. Signed-off-by: Ruediger Meier <ruediger.meier@ga-group.nl>
Diffstat (limited to 'schedutils')
-rw-r--r--schedutils/chrt.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/schedutils/chrt.c b/schedutils/chrt.c
index 84a6b3477..363d6e1df 100644
--- a/schedutils/chrt.c
+++ b/schedutils/chrt.c
@@ -168,14 +168,18 @@ static const char *get_policy_name(int policy)
case SCHED_OTHER:
return "SCHED_OTHER";
case SCHED_FIFO:
+#ifdef SCHED_RESET_ON_FORK
case SCHED_FIFO | SCHED_RESET_ON_FORK:
+#endif
return "SCHED_FIFO";
#ifdef SCHED_IDLE
case SCHED_IDLE:
return "SCHED_IDLE";
#endif
case SCHED_RR:
+#ifdef SCHED_RESET_ON_FORK
case SCHED_RR | SCHED_RESET_ON_FORK:
+#endif
return "SCHED_RR";
#ifdef SCHED_BATCH
case SCHED_BATCH: