[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <201001080955.07231.arnd@arndb.de>
Date: Fri, 8 Jan 2010 09:55:07 +0100
From: Arnd Bergmann <arnd@...db.de>
To: Christoph Lameter <cl@...ux-foundation.org>
Cc: Mathieu Desnoyers <mathieu.desnoyers@...ymtl.ca>,
Tejun Heo <tj@...nel.org>,
Mike Frysinger <vapier.adi@...il.com>,
linux-kernel@...r.kernel.org
Subject: Re: [RFC local_t removal V2 2/3] Remove local_t type from tree.
On Thursday 07 January 2010 23:35:26 Christoph Lameter wrote:
> -#define local_add_return(i, l) atomic_long_add_return((i), (&(l)->a))
> + local_irq_save(flags);
> + switch (size) {
> + case 1: r = (*((u8 *)ptr) += value);
> + break;
> + case 2: r = (*((u16 *)ptr) += value);
> + break;
> + case 4: r = (*((u32 *)ptr) += value);
> + break;
> + case 8: r = (*((u64 *)ptr) += value);
> + break;
> + }
> + local_irq_restore(flags);
> + return r;
> +}
This still misses 'volatile'.
Arnd
--
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