Re: [PATCH resend4 1/3] itimers: merge ITIMER_VIRT and ITIMER_PROFcommon code

From: Stanislaw Gruszka
Date: Fri May 22 2009 - 10:22:21 EST


Hi.

On Fri, 22 May 2009 16:08:34 +0200 (CEST)
Thomas Gleixner <tglx@xxxxxxxxxxxxx> wrote:
> On Fri, 22 May 2009, Stanislaw Gruszka wrote:
> > --- a/kernel/fork.c
> > +++ b/kernel/fork.c
> > @@ -790,10 +790,10 @@ static void posix_cpu_timers_init_group(struct signal_struct *sig)
> > thread_group_cputime_init(sig);
> >
> > /* Expiration times and increments. */
> > - sig->it_virt_expires = cputime_zero;
> > - sig->it_virt_incr = cputime_zero;
> > - sig->it_prof_expires = cputime_zero;
> > - sig->it_prof_incr = cputime_zero;
> > + sig->it[0].expires = cputime_zero;
> > + sig->it[0].incr = cputime_zero;
> > + sig->it[1].expires = cputime_zero;
> > + sig->it[1].incr = cputime_zero;
>
> Nit, can we please use CPUCLOCK_PROF/VIRT instead of 0/1 ?

I wanted to avoid including <linux/posix-timers.h> here.

Cheers
Stanislaw
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/