https://github.com/torvalds/linux
Revision 3e10e716abf3c71bdb5d86b8f507f9e72236c9cd authored by Jiri Slaby on 19 November 2009, 16:16:37 UTC, committed by Jiri Slaby on 04 January 2010, 10:35:18 UTC
We want to be sure that compiler fetches the limit variable only
once, so add helpers for fetching current and maximal resource
limits which do that.

Add them to sched.h (instead of resource.h) due to circular dependency
 sched.h->resource.h->task_struct
Alternative would be to create a separate res_access.h or similar.

Signed-off-by: Jiri Slaby <jslaby@suse.cz>
Cc: James Morris <jmorris@namei.org>
Cc: Heiko Carstens <heiko.carstens@de.ibm.com>
Cc: Andrew Morton <akpm@linux-foundation.org>
Cc: Ingo Molnar <mingo@elte.hu>
1 parent 96d07d2
History
Tip revision: 3e10e716abf3c71bdb5d86b8f507f9e72236c9cd authored by Jiri Slaby on 19 November 2009, 16:16:37 UTC
resource: add helpers for fetching rlimits
Tip revision: 3e10e71
File Mode Size
kvm

back to top