]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
[IA64] use helpers for rlimits
authorJiri Slaby <jslaby@suse.cz>
Wed, 6 Jan 2010 15:24:30 +0000 (16:24 +0100)
committerTony Luck <tony.luck@intel.com>
Wed, 6 Jan 2010 23:49:06 +0000 (15:49 -0800)
commit02b763b8ccc88d030117851f2b76a119932f109e
treefb9ed80b06e4b4af62746a87d2007edacc31576c
parent1d1e9f04216b379000128392b11edd7f5d0ebed1
[IA64] use helpers for rlimits

Make sure compiler won't do weird things with limits. E.g. fetching
them twice may return 2 different values after writable limits are
implemented.

I.e. either use rlimit helpers added in
3e10e716abf3c71bdb5d86b8f507f9e72236c9cd
or ACCESS_ONCE if not applicable.

Signed-off-by: Jiri Slaby <jslaby@suse.cz>
Cc: Fenghua Yu <fenghua.yu@intel.com>
Signed-off-by: Tony Luck <tony.luck@intel.com>
arch/ia64/kernel/perfmon.c
arch/ia64/mm/init.c