[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <alpine.DEB.2.00.1012070935420.26552@router.home>
Date: Tue, 7 Dec 2010 09:36:09 -0600 (CST)
From: Christoph Lameter <cl@...ux.com>
To: Tejun Heo <tj@...nel.org>
cc: akpm@...ux-foundation.org, Scott James Remnant <scott@...ntu.com>,
Mike Frysinger <vapier@...too.org>,
Pekka Enberg <penberg@...helsinki.fi>,
linux-kernel@...r.kernel.org,
Eric Dumazet <eric.dumazet@...il.com>,
Mathieu Desnoyers <mathieu.desnoyers@...icios.com>
Subject: Re: [Use cpuops V1 09/11] Connector: Use this_cpu operations
On Tue, 7 Dec 2010, Tejun Heo wrote:
> > Index: linux-2.6/drivers/connector/cn_proc.c
> > ===================================================================
> > --- linux-2.6.orig/drivers/connector/cn_proc.c 2010-11-30 09:38:33.000000000 -0600
> > +++ linux-2.6/drivers/connector/cn_proc.c 2010-11-30 09:39:38.000000000 -0600
> > @@ -43,9 +43,10 @@ static DEFINE_PER_CPU(__u32, proc_event_
> >
> > static inline void get_seq(__u32 *ts, int *cpu)
> > {
> > - *ts = get_cpu_var(proc_event_counts)++;
> > + preempt_disable();
> > + *ts = __this_cpu_inc(proc_event_counts);
>
> Eh? __this_cpu_inc() evaluates to the incremented value?
Err no. Drop this and I will add it to the series that depends on the inc.
--
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