[PATCH 1/2] chrt: fix case SCHED_RR

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

 



From: Ruediger Meier <ruediger.meier@xxxxxxxxxxx>

Looks like the logic was mistakenly changed in acde3a05.

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

diff --git a/schedutils/chrt.c b/schedutils/chrt.c
index 030be57..84a6b34 100644
--- a/schedutils/chrt.c
+++ b/schedutils/chrt.c
@@ -175,10 +175,10 @@ static const char *get_policy_name(int policy)
 		return "SCHED_IDLE";
 #endif
 	case SCHED_RR:
+	case SCHED_RR | SCHED_RESET_ON_FORK:
 		return "SCHED_RR";
 #ifdef SCHED_BATCH
 	case SCHED_BATCH:
-	case SCHED_RR | SCHED_RESET_ON_FORK:
 		return "SCHED_BATCH";
 #endif
 #ifdef SCHED_DEADLINE
-- 
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