My guess is that the test might be hitting the following code from kernel/sched/core.c:
#ifdef CONFIG_RT_GROUP_SCHED
/*
* Do not allow realtime tasks into groups that have no runtime
* assigned.
*/
if (rt_bandwidth_enabled() && rt_policy(policy) && task_group(p)->rt_bandwidth.rt_runtime == 0 && !task_group_is_autogroup(task_group(p))) { retval = -EPERM; goto unlock;
}
#endif
Which is not really about the capabilities. That is just a guess.
My guess is that the test might be hitting the following code from kernel/ sched/core. c:
#ifdef CONFIG_ RT_GROUP_ SCHED enabled( ) && rt_policy(policy) &&
task_ group(p) ->rt_bandwidth. rt_runtime == 0 &&
!task_ group_is_ autogroup( task_group( p))) {
retval = -EPERM;
goto unlock;
/*
* Do not allow realtime tasks into groups that have no runtime
* assigned.
*/
if (rt_bandwidth_
}
#endif
Which is not really about the capabilities. That is just a guess.