Re: [PATCH] cpuacct: add a branch prediction

From: Arnd Bergmann
Date: Thu Feb 26 2009 - 07:41:34 EST


On Thursday 26 February 2009, Ingo Molnar wrote:
>
> > Yeah, atomic64_t has been proposed numerous times, and x86
> > could actually implement that using cmpxchg8b, just not sure
> > about all the other 32bit archs, and if we start using it in
> > the scheduler, they'd better have it implemented.
>
> I have written a working atomic64_t implementation for
> tip:perfcounters/core, for 32-bit x86.

It should also be possible to write an asm-generic atomic64_t
implementation based on the parisc atomic_t hashlock code.
For non-SMP configurations, it falls back on local_irq_save(),
which is already the method used for atomic_t on half the
embedded architectures.

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