Re: [PATCH 4/5] atomic: dec_and_lock use cmpxchg

From: Nick Piggin
Date: Wed Sep 14 2005 - 12:16:55 EST


David S. Miller wrote:

I talked to Linus about my patch and he made the good point that the
Alpha optimization is very valid (it avoids loading the GP and other
stuff by doing that fancy assembler entry point). So we decided that
we'd make the cmpxchg() generic version, but make moving over to that
gradual instead of mandatorily forcing everyone to use the new thing.

So, for example, we'd convert sparc64 (because I want to) and the
architectures using the exact same ppc64 C code, but leave the others
alone. It'd be up to the remaining platform's maintainers to move
over if they wanted to.

I'll submit that updated patch to him later today.


OK that's fair enough. I'll submit whatever cleanups are possible
on top of your patch after the atomic_cmpxchg patch goes in (if
it goes in). Thanks.

--
SUSE Labs, Novell Inc.

Send instant messages to your online friends http://au.messenger.yahoo.com -
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/