projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
45254b4
)
proc: add RLIMIT_RTTIME to /proc/<pid>/limits
author
Eugene Teo
<
[email protected]
>
Sat, 23 Feb 2008 23:23:52 +0000
(15:23 -0800)
committer
Linus Torvalds
<
[email protected]
>
Sun, 24 Feb 2008 01:12:15 +0000
(17:12 -0800)
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 <
[email protected]
>
Acked-by: Peter Zijlstra <
[email protected]
>
Cc: Ingo Molnar <
[email protected]
>
Signed-off-by: Andrew Morton <
[email protected]
>
Signed-off-by: Linus Torvalds <
[email protected]
>
fs/proc/base.c
patch
|
blob
|
history
diff --git
a/fs/proc/base.c
b/fs/proc/base.c
index 88f8edf18258ac50681474ffc9542c75de30ecda..96ee899d65020e76e5c0c8d49b0683c74214ebed 100644
(file)
--- 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 */