[PATCH 2/2] chrt: restore removed ifdef SCHED_RESET_ON_FORK

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



From: Ruediger Meier <ruediger.meier@xxxxxxxxxxx>

They got lost in acde3a05.

Signed-off-by: Ruediger Meier <ruediger.meier@xxxxxxxxxxx>
---
 schedutils/chrt.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/schedutils/chrt.c b/schedutils/chrt.c
index 84a6b34..363d6e1 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:
-- 
1.8.4.5

--
To unsubscribe from this list: send the line "unsubscribe util-linux" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Netdev]     [Ethernet Bridging]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]

  Powered by Linux