From: Eugene Teo Date: Sat, 23 Feb 2008 23:23:52 +0000 (-0800) Subject: proc: add RLIMIT_RTTIME to /proc//limits X-Git-Tag: v2.6.25-rc3~39 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=8808117ca571fd63e188a2306baae86cca9fce7a;p=linux-2.6-omap-h63xx.git proc: add RLIMIT_RTTIME to /proc//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//limits with the new rlimit. Signed-off-by: Eugene Teo Acked-by: Peter Zijlstra Cc: Ingo Molnar Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/fs/proc/base.c b/fs/proc/base.c index 88f8edf1825..96ee899d650 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 */