[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <4B7328D2.8050002@gmail.com>
Date: Wed, 10 Feb 2010 22:44:50 +0100
From: Jiri Slaby <jirislaby@...il.com>
To: Andrew Morton <akpm@...ux-foundation.org>
CC: linux-kernel@...r.kernel.org, Ingo Molnar <mingo@...e.hu>,
Veaceslav Falico <vfalico@...hat.com>
Subject: Re: [PATCH 1/1] kernel core: use helpers for rlimits fix
On 02/10/2010 09:10 PM, Andrew Morton wrote:
> static void posix_cpu_timers_init_group(struct signal_struct *sig)
> {
> unsigned long cpu_limit;
>
> /* Thread group counters. */
> thread_group_cputime_init(sig);
>
> cpu_limit = ACCESS_ONCE(sig->rlim[RLIMIT_CPU].rlim_cur);
> if (cpu_limit != RLIM_INFINITY) {
> sig->cputime_expires.prof_exp = secs_to_cputime(cpu_limit);
> sig->cputimer.running = 1;
> }
FWIW ack.
thanks,
--
js
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists