posix-cpu-timers: cleanup rlimits usage
authorJiri Slaby <jslaby@suse.cz>
Fri, 5 Mar 2010 21:42:53 +0000 (13:42 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Sat, 6 Mar 2010 19:26:32 +0000 (11:26 -0800)
commitd4bb527438b4181cd3c564ae04dd344c381283a1
tree0e7afeb6b759f72b136d707db4e5725a92b0d777
parentf3abd4f9531becb71626bd206955d47d5ea54f06
posix-cpu-timers: cleanup rlimits usage

Fetch rlimit (both hard and soft) values only once and work on them.  It
removes many accesses through sig structure and makes the code cleaner.

Mostly a preparation for writable resource limits support.

Signed-off-by: Jiri Slaby <jslaby@suse.cz>
Cc: Ingo Molnar <mingo@elte.hu>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: john stultz <johnstul@us.ibm.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
kernel/posix-cpu-timers.c