summaryrefslogtreecommitdiffstats
path: root/fs
diff options
context:
space:
mode:
authorEugene Teo <eugeneteo@kernel.sg>2008-02-24 00:23:52 +0100
committerLinus Torvalds <torvalds@woody.linux-foundation.org>2008-02-24 02:12:15 +0100
commit8808117ca571fd63e188a2306baae86cca9fce7a (patch)
tree2cccec386bb732f0a14378dac298846f40fd691d /fs
parentefs: move headers out of include/linux/ (diff)
downloadlinux-8808117ca571fd63e188a2306baae86cca9fce7a.tar.xz
linux-8808117ca571fd63e188a2306baae86cca9fce7a.zip
proc: add RLIMIT_RTTIME to /proc/<pid>/limits
RLIMIT_RTTIME was introduced to allow the user to set a runtime timeout on real-time tasks: http://lkml.org/lkml/2007/12/18/218. This patch updates /proc/<pid>/limits with the new rlimit. Signed-off-by: Eugene Teo <eugeneteo@kernel.sg> Acked-by: Peter Zijlstra <a.p.zijlstra@chello.nl> Cc: Ingo Molnar <mingo@elte.hu> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'fs')
-rw-r--r--fs/proc/base.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/proc/base.c b/fs/proc/base.c
index 88f8edf18258..96ee899d6502 100644
--- a/fs/proc/base.c
+++ b/fs/proc/base.c
@@ -416,6 +416,7 @@ static const struct limit_names lnames[RLIM_NLIMITS] = {
[RLIMIT_MSGQUEUE] = {"Max msgqueue size", "bytes"},
[RLIMIT_NICE] = {"Max nice priority", NULL},
[RLIMIT_RTPRIO] = {"Max realtime priority", NULL},
+ [RLIMIT_RTTIME] = {"Max realtime timeout", "us"},
};
/* Display limits for a process */