[RFC 17/18] limits: track RLIMIT_RTPRIO actual max

From: Topi Miettinen
Date: Mon Jun 13 2016 - 15:48:48 EST


Track maximum RT priority, presented in /proc/self/limits.

Signed-off-by: Topi Miettinen <toiwoton@xxxxxxxxx>
---
kernel/sched/core.c | 2 ++
1 file changed, 2 insertions(+)

diff --git a/kernel/sched/core.c b/kernel/sched/core.c
index 817d720..d31a06a 100644
--- a/kernel/sched/core.c
+++ b/kernel/sched/core.c
@@ -4219,6 +4219,8 @@ change:
balance_callback(rq);
preempt_enable();

+ task_bump_rlimit(p, RLIMIT_RTPRIO, attr->sched_priority);
+
return 0;
}

--
2.8.1