[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <1465847065-3577-18-git-send-email-toiwoton@gmail.com>
Date: Mon, 13 Jun 2016 22:44:24 +0300
From: Topi Miettinen <toiwoton@...il.com>
To: linux-kernel@...r.kernel.org
Cc: Topi Miettinen <toiwoton@...il.com>,
Ingo Molnar <mingo@...hat.com>,
Peter Zijlstra <peterz@...radead.org>
Subject: [RFC 17/18] limits: track RLIMIT_RTPRIO actual max
Track maximum RT priority, presented in /proc/self/limits.
Signed-off-by: Topi Miettinen <toiwoton@...il.com>
---
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
Powered by blists - more mailing lists