|
@@ -3338,6 +3338,15 @@ recheck:
|
|
return -EPERM;
|
|
return -EPERM;
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ /*
|
|
|
|
+ * Can't set/change SCHED_DEADLINE policy at all for now
|
|
|
|
+ * (safest behavior); in the future we would like to allow
|
|
|
|
+ * unprivileged DL tasks to increase their relative deadline
|
|
|
|
+ * or reduce their runtime (both ways reducing utilization)
|
|
|
|
+ */
|
|
|
|
+ if (dl_policy(policy))
|
|
|
|
+ return -EPERM;
|
|
|
|
+
|
|
/*
|
|
/*
|
|
* Treat SCHED_IDLE as nice 20. Only allow a switch to
|
|
* Treat SCHED_IDLE as nice 20. Only allow a switch to
|
|
* SCHED_NORMAL if the RLIMIT_NICE would normally permit it.
|
|
* SCHED_NORMAL if the RLIMIT_NICE would normally permit it.
|