Re: [cpuops cmpxchg double V1 1/4] Generic support for this_cpu_cmpxchg_double

From: Tejun Heo
Date: Sat Dec 25 2010 - 11:53:06 EST


On Sat, Dec 25, 2010 at 5:53 AM, Christoph Lameter <cl@xxxxxxxxx> wrote:
> Oh gosh. So we would be using a tight corner case for gcc that may only
> work with certain versions of gcc? Note that the current version does only
> return a boolean. There is no need for returning double words. I'd be
> happy if we could *pass* double words.

I wouldn't call it a corner case. It's pretty clearly defined in the
ABI. But that said, it might still be problematic on other
architectures when we try to apply it to different architectures. Is
everyone against just taking a scalar for the first variable instead
of taking a pointer? I'd be happier with that than the current one.

Thanks.

--
tejun
--
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/