Re: [PATCH] cpuacct: add a branch prediction

From: Ingo Molnar
Date: Thu Feb 26 2009 - 07:26:58 EST



* Peter Zijlstra <a.p.zijlstra@xxxxxxxxx> wrote:

> On Thu, 2009-02-26 at 21:06 +0900, KAMEZAWA Hiroyuki wrote:
> > Hmm.. some routine like
> > atomic64_read() can help this ? (But I don't want to use atomic_t here..)
>
> 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.

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