Re: [patch 2/8] Implement always-locked bit ops, for memory shared with an SMP hypervisor.

Andi Kleen
2006-08-03T04:49:30Z

On Thursday 03 August 2006 06:25, Christoph Lameter wrote:
> On Thu, 3 Aug 2006, Andi Kleen wrote:
>
> > On Thursday 03 August 2006 03:25, Christoph Lameter wrote:
> >
> > > Good idea. This will also make it easier to support this special
> > > functionality. And it will avoid use in contexts where these are
> > > not necessary.
> >
> > I think it's a bad idea. We don't want lots of architecture ifdefs
> > in some Xen specific file
>
> Thats not how it would be done. We would do this with
> architecture specific xen files and a default in asm-generic.

It's cleaner to just do it in the generic code.

I think for most architectures it is only a one liner anyways if
done properly.

-Andi