fixeria has uploaded this change for review. ( https://gerrit.osmocom.org/c/libosmocore/+/43683?usp=email )
Change subject: vty: cpu-sched: enlarge RR priority range ......................................................................
vty: cpu-sched: enlarge RR priority range
As per `man 7 sched`, "POSIX.1 requires an implementation to support only a minimum 32 distinct priority levels for the real-time policies, and some systems supply just this minimum". However, the full value range is 1 (low) to 99 (high) and Linux does support values up to 99. Let's allow the user to specify values higher than 32.
Change-Id: Ie362d69287096382738aa46a4a8c69509c20cea2 --- M src/vty/cpu_sched_vty.c 1 file changed, 1 insertion(+), 1 deletion(-)
git pull ssh://gerrit.osmocom.org:29418/libosmocore refs/changes/83/43683/1
diff --git a/src/vty/cpu_sched_vty.c b/src/vty/cpu_sched_vty.c index a712860..0dc453f 100644 --- a/src/vty/cpu_sched_vty.c +++ b/src/vty/cpu_sched_vty.c @@ -486,7 +486,7 @@ }
DEFUN_ATTR(cfg_sched_policy, cfg_sched_policy_cmd, - "policy rr <1-32>", + "policy rr <1-99>", "Set the scheduling policy to use for the process\n" "Use the SCHED_RR real-time scheduling algorithm\n" "Set the SCHED_RR real-time priority\n",